nitely / nim-regex

Pure Nim regex engine. Guarantees linear time matching
https://nitely.github.io/nim-regex/
MIT License
228 stars 21 forks source link

[JS] Regex set no longer match in Nim v1.4 #88

Closed nitely closed 4 years ago

nitely commented 4 years ago

Only the JS compilation is affected (nim js ...), see https://github.com/nim-lang/Nim/issues/15624

P.S: the match macro should work, and using let/var for the regex should work as well, ex: let exp = re"[abc]+"

nitely commented 4 years ago

I should consider using a seq instead. It won't be worse than doing alternations instead of set, ex re"(a|b|c)+"