hoaproject/Regex

Incorrect handling of dashes inside character classes

ju1ius opened this issue ยท 1 comments

Hi again ๐Ÿ˜‰,

Parsing the pattern [\w-] throws Unexpected token "-" (range) at line 1 and column 4.
When encountered at the last position of a character class, a dash should produce a token with the value "-".


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Hywan commented

Thanks for the report!

e770ada fixes the issue. Can you test on your use case please?