regexp-to-ast
regexp-to-ast copied to clipboard
Add support for negative ranges in classes
Before this change [\D] was treated the same as [\d] because the complement flag was lost.
After this change [\D] correctly represents the set of non-\d characters.
This also enables [\d\D] to match every single character.
Fixes #66