mirror of https://github.com/rancher/ui.git
Fix logging adavance mode issue
https://github.com/rancher/rancher/issues/18476 https://github.com/rancher/rancher/issues/18479
This commit is contained in:
parent
08dc5d9a30
commit
d7464d334f
|
|
@ -121,7 +121,7 @@ export default Component.extend(ThrottledResize, {
|
|||
deepStrs.map((s) => {
|
||||
str += s
|
||||
})
|
||||
const out = `<match *>\n${ body }${ str }</match>`
|
||||
const out = `<match *>\n${ body } ${ str }\n</match>`
|
||||
|
||||
this.send('updateValue', out)
|
||||
}),
|
||||
|
|
@ -290,7 +290,7 @@ ${ fieldsStr }
|
|||
|
||||
parseValue(value = '') {
|
||||
let fileObj = {}
|
||||
const removeMacth = value.replace(/.*<match.*>(\r\n|\n|\r) {2}/ig, '').replace(/(\r\n|\n|\r).*<\/match.*>/ig, '')
|
||||
const removeMacth = value.replace(/.*<match.*>.*(\r\n|\n|\r) {2}/ig, '').replace(/(\r\n|\n|\r).*<\/match.*>/ig, '')
|
||||
const deepStrs = removeMacth.match(/<(.|\r\n|\n|\r)*<\/.*>/ig, '') || []
|
||||
|
||||
const removedDeep = removeMacth.replace(/<(.|\r\n|\n|\r)*<\/.*>/ig, '')
|
||||
|
|
|
|||
|
|
@ -194,8 +194,7 @@ export default Component.extend(NewOrEdit, {
|
|||
|
||||
parseValue: computed('customContent', function() {
|
||||
let fileObj = {}
|
||||
const removeMacth = get(this, 'customContent').replace(/.*<match.*>(\r\n|\n|\r) {2}/ig, '').replace(/(\r\n|\n|\r).*<\/match.*>/ig, '')
|
||||
|
||||
const removeMacth = get(this, 'customContent').replace(/.*<match.*>.*(\r\n|\n|\r) {2}/ig, '').replace(/(\r\n|\n|\r).*<\/match.*>/ig, '')
|
||||
const deepStrs = removeMacth.match(/<(.|\r\n|\n|\r)*<\/.*>/ig, '') || []
|
||||
const removedDeep = removeMacth.replace(/<(.|\r\n|\n|\r)*<\/.*>/ig, '')
|
||||
|
||||
|
|
@ -256,7 +255,7 @@ export default Component.extend(NewOrEdit, {
|
|||
clientKey: get(this, 'model.customTarget.config.clientKey'),
|
||||
clientCert: get(this, 'model.customTarget.config.clientCert'),
|
||||
certificate: get(this, 'model.customTarget.config.certificate'),
|
||||
content: (get(this, 'customContent') || '').replace(/.*<match.*>(\r\n|\n|\r) {2}/ig, '').replace(/(\r\n|\n|\r).*<\/match.*>/ig, ''),
|
||||
content: (get(this, 'customContent') || '').replace(/.*<match.*>.*(\r\n|\n|\r) {2}/ig, '').replace(/(\r\n|\n|\r).*<\/match.*>/ig, ''),
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue