[Bug]: Invalid regular expression: invalid group specifier name (introduced in 2.10.3) #5889
Open
1 task done
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Info: Help Wanted
The issue or pullrequest needs help from the community
Type: Bug
The issue or pullrequest is related to a bug
Affected Packages
extension-code
Version(s)
2.10.3
Bug Description
The TipTap code extension fails to load on Safari versions below 16 due to the following error:
Invalid regular expression: invalid group specifier name.
This issue prevents the file from being loaded and stems from an incompatible regex introduced in this commit:
ueberdosis/tiptap commit f79c05e.
The regex uses named capturing groups and lookbehind assertions, which are not supported in Safari versions earlier than 16.
Browser Used
Safari
Code Example URL
No response
Expected Behavior
The file should load correctly.
Rewritten Regex
Original:
Rewritten Without Lookbehind:
Additional Context (Optional)
No response
Dependency Updates
The text was updated successfully, but these errors were encountered: