Closed thomasahle closed 1 year ago
This is intentional, to make parsing easier. It is documented in the README. I would probably look favourably on a PR which added this functionality but it's not something I'm planning to add currently.
You could leave it open as "enchantment" or "help wanted" if you wanted anyone to make a pull request in the future...
As far as I know, in regular expressions, when the hyphen (-) is used inside a character class ([...]), and it is last character within the class, it is treated as a literal hyphen.
However, greenery fails on this regex:
The standard
re
library works fine:If I escape the dash, like
[.\-]
, greenery accepts it, but it shouldn't be necessary.