-
Notifications
You must be signed in to change notification settings - Fork 233
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
Update to italic parsing breaks Safari 15.5 #255
Comments
Hey @just-another-jxliu, thanks for reporting this! I'm going to roll back the latest release until we get this solved. @msglifeIberia and or @MSGInsurIt, would you be interested in revisiting PR #254 to see if we could make it work with Safari? |
For context, the issue is that the RegEx above uses a Negative lookbehind assertion which is the Here's a minimum reproducible test case: let regEx = /(?<!y)x/ |
Hi, We are not finding a quick solution for this issue without Negative lookbehind support without doing considerable code changes. For now, we would like to propose keeping the fix for the browsers that support it and having a fallback mechanism for those that don't support. |
FYI @just-another-jxliu , |
Hi @sstur, The issue with the RegExp lookbehind assertions was finally implemented in the safari browser as mentioned in the following link: https://bugs.webkit.org/show_bug.cgi?id=174931 It would make sense to re-apply the merge #254 to the latest version. Will you merge the code again? |
Negative lookbehind assertion It's working now in Release 161 of Safari Technology Preview, downloads are here: [https://developer.apple.com/safari/resources/] Although it didn't make the cut for the release notes! |
Update to italic parsing breaks Safari 15.5:
em: /^_([\s\S]+?)(?<!\\)_|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/
SyntaxError: Invalid regular expression: invalid group specifier name
#254
The text was updated successfully, but these errors were encountered: