[Code improvement] Update XRegExp to simplify unbalanced recursive parsing
slevithan opened this issue · 0 comments
slevithan commented
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.