forked from github/dataease
Merge pull request #2577 from dataease/pr@dev_regx_safari
fix: 修复safari由于不支持对js中正则表达式的 几个新增的断言验证不支持导致的白屏
This commit is contained in:
commit
0ef7f86531
@ -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])
|
||||
}
|
||||
|
@ -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])
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user