jetlinks / jetlinks-ui-antd

jetlinks community ant design 演示地址:http://demo.jetlinks.cn 账号/密码: test/test123456
MIT License
524 stars 369 forks source link

🐛[BUG] Chrome正常,Safari打不开 #763

Closed RodgerLai closed 1 year ago

RodgerLai commented 1 year ago

🐛 bug 描述

Safari打不开,即便是官方地址https://demo.jetlinks.cn在Safari也打不开

RodgerLai commented 1 year ago

已解决,修改正则表达式的定义方式即可。字面量的写法Safari不支持

// 正则提取${}里面的值 //const pattern = /(?<=\${).?(?=})/g; Safari不支持 const pattern = new RegExp("(?<=\${).?(?=})", "g");

// 提取微信服务号里面的值 {{}} //const weixinPattern = /(?<={{).?(?=.DATA}})/g; Safari不支持 const weixinPattern = new RegExp("(?<={{).?(?=.DATA}})", "g");