-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Lookbehind is not supported in all browsers (Safari) #20
Comments
Bad news, Safari 15 doesn’t support it either https://caniuse.com/?search=regexp%20lookbehind |
Just a suggestion: you can check the input size first and then apply semver "official" regex. There're no lookbehinds so it may be more suitable. The key profit of lookbehind here is the redos-safe assertion that |
Hi all,
First of all, thanks for this package!
I'm using it to check the version input in a Vue.js frontend. However, when opening a page in Safari (the new Internet Explorer), a lookbehind in regex is not supported.
I'll try and change the Regex so it'll work in Safari. However, like most developers, regex is a "hocus-pocus language", especially when they're long like this one.
Any suggestions are welcome!
The text was updated successfully, but these errors were encountered: