jviereck / regjsparser

Parsing the JavaScript's RegExp in JavaScript.
http://www.julianviereck.de/regjsparser/
BSD 2-Clause "Simplified" License
77 stars 20 forks source link

Acceppt the different `u` features in `v` mode #123

Closed nicolo-ribaudo closed 2 years ago

nicolo-ribaudo commented 2 years ago

I'm sorry that I keep finding bugs in my original implementation :grimacing: All the features that are allowed in 'u' mode but not in "legacy mode" should also be allowed in v mode, and all the new restrictions that apply to u mode should also apply in v mode.

cc @mathiasbynens

jviereck commented 2 years ago

That's okay to find bugs for now. I doubt the v flag is used actively much and I appreciate you providing fixes quickly!

jviereck commented 2 years ago

Thanks @nicolo-ribaudo for your contribution and @mathiasbynens for your review!

jviereck commented 2 years ago

Published regjsparser@0.8.3 to npm.