Bowen7 / regex-vis

🎨 Regex visualizer & editor
https://regex-vis.com
MIT License
3.78k stars 279 forks source link

Fix(parser): the quantifier after unnecessary escaped chars #141

Closed Bowen7 closed 1 month ago

Bowen7 commented 1 month ago

Close https://github.com/Bowen7/regex-vis/issues/137

To reproduce: input the regex \aaa?

This code will return early when there is a quantifier after unnecessary escaped chars. Just remove the return:

https://github.com/Bowen7/regex-vis/blob/d60999ed55d844870a0b95c15c3ace16d3bc7dbc/src/parser/parser.ts#L68-L96

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
regex-vis ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 28, 2024 1:54pm