Skip to content

Option toggling

Compare
Choose a tag to compare
@tom-lord tom-lord released this 08 Feb 21:50
· 291 commits to master since this release

Option toggling within the pattern is now fully supported. For example:

/ab(?i)c/.examples #=> ["abc", "abC"]
/a(?-i:bc)/i.examples #=> ["abc", "Abc"]

Also added support for comment groups, such as /foo(?#comment)bar/.examples