Skip to content

v4.1.1

Choose a tag to compare

@slevithan slevithan released this 18 Aug 13:46
· 170 commits to main since this release

🚀 Features

  • Combining atomic/possessive syntax with subroutines previously resulted in subroutines using capturing wrappers. This is now avoided when the regex doesn’t use backreferences, resulting in faster-running generated regex source.
  • Possessive fixed repetition quantifiers (e.g. {2}+) are now converted to greedy quantifiers (e.g. {2}), which gives the same behavior with faster-running generated regex source.

🐞 Fixes

  • When using extended syntax (e.g. atomic groups) that resulted in the use of emulation groups in generated source, the subclass: true option could lead to incorrect values for submatches that preceded emulation groups, when used outside of the regex.