Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error] SyntaxError: Invalid regular expression: invalid group specifier name (anonymous function) (mojocss.min.js:2) on Safari IOS v15 and v16 #13

Closed
webcodavic opened this issue Apr 10, 2024 · 3 comments

Comments

@webcodavic
Copy link

webcodavic commented Apr 10, 2024

I got this error on Safari IOS v15 and v16 and it causes mojocss not to load

@webcodavic webcodavic changed the title [Error] SyntaxError: Invalid regular expression: invalid group specifier name (anonymous function) (mojocss.min.js:2) on Safari ios 15 [Error] SyntaxError: Invalid regular expression: invalid group specifier name (anonymous function) (mojocss.min.js:2) on Safari IOS v15 and v16 Apr 10, 2024
@webcodavic
Copy link
Author

webcodavic commented Apr 10, 2024

The use of lookbehinds ((?<!calc\()) is not supported by Safari iOS v15. When I removed the < between ? and ! it works fine (maybe because I don't use calc combined with var)

Replace
/(?<!calc\()var\(--\w+?(?:-\w+?)*\)(?!\))|[+\-*/]/g
with
/(?!calc\()var\(--\w+?(?:-\w+?)*\)(?!\))|[+\-*/]/g

@ali-m97
Copy link
Member

ali-m97 commented Apr 12, 2024

Hi,
Thanks for the bug report, we will fix it in the update

@ali-m97
Copy link
Member

ali-m97 commented May 25, 2024

This issue is fixed in 0.2 RC version

@ali-m97 ali-m97 closed this as completed May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants