Merge pull request #2577 from dataease/pr@dev_regx_safari

fix: 修复safari由于不支持对js中正则表达式的 几个新增的断言验证不支持导致的白屏
This commit is contained in:
dataeaseShu 2022-07-05 10:09:41 +08:00 committed by GitHub
commit 0ef7f86531
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -420,9 +420,10 @@ export default {
pre[next[from]] = next[to]
return pre
}, {})
const on = originName.match(/(?<=\[).+?(?=\])/g)
const on = originName.match(/\[(.+?)\]/g)
if (on) {
on.forEach(ele => {
on.forEach(itm => {
const ele = itm.slice(1, -1)
if (name2Auto) {
name2Auto.push(nameIdMap[ele])
}

View File

@ -371,9 +371,10 @@ export default {
pre[next[from]] = next[to]
return pre
}, {})
const on = originName.match(/(?<=\[).+?(?=\])/g)
const on = originName.match(/\[(.+?)\]/g)
if (on) {
on.forEach(ele => {
on.forEach(itm => {
const ele = itm.slice(1, -1)
if (name2Auto) {
name2Auto.push(nameIdMap[ele])
}