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

fix(): do not use RegExp lookbehind assertion, not supported in WebKit #48

Closed

Conversation

MurakamiShinyu
Copy link
Contributor

This is a follow-up fix to #38.

That was my mistake. The regexp lookbehind assertion (?<!^) is not supported in some JavaScript engines, esp. WebKit's, and causes error, so it should not be used yet.

See:

This is a follow-up fix to anodynos#38.

That was my mistake. The regexp lookbehind assertion `(?<!^)` is not supported in some JavaScript engines, esp. WebKit's, and causes error, so it should not be used yet.

See
- "lookbehind assertions" in https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#browser_compatibility
- WebKit issue: [Bug 174931 - Implement RegExp lookbehind assertions](https://bugs.webkit.org/show_bug.cgi?id=174931)
@anodynos
Copy link
Owner

It seems WebKit Bug 174931 - Implement RegExp lookbehind assertions is now resolved, so I'm closing it. Thanks

@anodynos anodynos closed this Apr 20, 2023
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

Successfully merging this pull request may close these issues.

2 participants