fix: 修复safari由于不支持对js中正则表达式的 几个新增的断言验证不支持导致的白屏

This commit is contained in:
dataeaseShu 2022-07-05 10:09:07 +08:00
parent 2c4a92fef4
commit d5f630cfea
2 changed files with 6 additions and 4 deletions

View File

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

View File

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