ridiculousfish / regress

REGex in Rust with EcmaScript Syntax
Apache License 2.0
176 stars 11 forks source link

Conditionally parse named capture groups #83

Closed raskad closed 9 months ago

raskad commented 9 months ago

In the case where unicode mode is not set and there are no GroupNames in the regex, \k GroupName is not parsed as a capture group reference but as the literal character k and the literal following group name.

I fixed the 262 tests that check this behaviour.