Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Incorrect handling of dashes inside character classes #31

Open
ju1ius opened this issue Jan 17, 2018 · 1 comment
Open

Incorrect handling of dashes inside character classes #31

ju1ius opened this issue Jan 17, 2018 · 1 comment

Comments

@ju1ius
Copy link

ju1ius commented Jan 17, 2018

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
Copy link
Member

Hywan commented Jan 22, 2018

Thanks for the report!

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants