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:
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: