slevithan / xregexp

Extended JavaScript regular expressions
http://xregexp.com/
MIT License
3.31k stars 278 forks source link

BREAKING: Enable `namespacing` feature by default #316

Closed josephfrazier closed 3 years ago

josephfrazier commented 3 years ago

Following up on the change to use ES2018 constraints on the names of capture groups, this makes it so that XRegExp namespacing feature is enabled by default, so that named capture group matches will appear on the .groups property of the match object, rather than directly on the match object, in accordance with the ES2018 spec.

While this is a breaking change, users can restore the old behavior by running:

XRegExp.uninstall('namespacing')
josephfrazier commented 3 years ago

thanks!