ammar / regexp_parser

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

Make property scanning in sets consistent #35

Closed jaynetics closed 7 years ago

jaynetics commented 7 years ago

See issue #28.

The in_set global is actually set correctly here, but for nonproperties with a caret, the :set type is then overridden here.

This PR fixes this.

As a bonus, it correctly detects \P{^foo} as a positive :property, although probably no one in his right mind would write that 😁