ammar / regexp_parser

A regular expression parser library for Ruby
MIT License
143 stars 22 forks source link

Support for Ruby 2.4.1 Absent Operator #33

Closed backus closed 7 years ago

backus commented 7 years ago

See Absent Operator.

Basically it matches anything not within the parens:

>> "John Doe" =~ /\A(?~John) Doe\z/
=> nil
>> "Jane Doe" =~ /\A(?~John) Doe\z/
=> 0

Kind of weird they released this in a patch version.

ammar commented 7 years ago

Excellent. Thanks.

Also need to update Unicode properties to Unicode 8.0, which I believe was added to ruby in 2.4.0. It looks like it only adds new script names though.

ammar commented 7 years ago

Addressed in release 0.4.4