Skip to content

Upgrade to XRegExp 5.0.1 #4

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

Merged
merged 2 commits into from
Dec 24, 2021
Merged

Conversation

slevithan
Copy link
Contributor

This makes several improvements:

  • Upgrades XRegExp from v3.2.0 to v5.0.1 (the latest version). This is necessary for the latest improvements to XRegExp regex and replacement text syntax.
  • Updates all usage of XRegExp in server.js (v3.2.0 was the last version to support XRegExp.install('natives')).
  • Fixes an infinite loop that occurs when using a global regex that is capable of matching zero-length strings (this bug currently also affects regexplanet-js).
  • Shows the error message to users when there is a regex syntax error.
  • Adds named captures to the results that are shown.

I tried to be very careful with my edits, but note that these changes are untested.

@fileformat fileformat merged commit 4bcdbb0 into regexplanet:main Dec 24, 2021
@slevithan
Copy link
Contributor Author

@fileformat Although this change has been merged for years, it still does not seem to be live on https://www.regexplanet.com/advanced/xregexp/index.html

@slevithan slevithan deleted the xregexp5.0.1 branch May 3, 2025 10:11
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