qntm / greenery

Regular expression manipulation library
http://qntm.org/greenery
MIT License
311 stars 40 forks source link

Charclass: bulk union/intersection methods #86

Closed rwe closed 1 year ago

rwe commented 1 year ago

In #69, the incorrect combination of open (negated) charclasses was fixed in greenery/parse.py. The corrected logic was identical to that of bulk union/intersection of Charclass objects.

This moves that logic into the Charclass class and adds/restores tests around those methods.

rwe commented 1 year ago

I'll fix conflicts on this and other PR; just afk this weekend.

rwe commented 1 year ago

To keep things manageable re number of merges, I've just rebased this and the other PR.