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

[Code improvement] Update XRegExp to simplify unbalanced recursive parsing #66

Open
slevithan opened this issue Apr 27, 2024 · 0 comments

Comments

@slevithan
Copy link

XRegExp 5.1.0+ includes an option that enables XRegExp.matchRecursive to skip unbalanced delimiters. See: XRegExp 5.1.0 release notes and XRegExp.matchRecursive docs.

src/parsing.ts includes its own handling for unbalanced delimiters that looks like it can probably be simplified a lot or removed as a result.

Additionally, package.json includes "@types/xregexp": "^4.3.0" in devDependencies. This can probably be removed since types were added to XRegExp in v4.4.0.

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

No branches or pull requests

1 participant