3 ms·
It seems there's a need of a regex linter (eslint plugin?) that could warn on pathologically complex regexes. Is building this kind of plugin feasible? Having
by jakub_g 11y ago
It seems there's a need of a regex linter (eslint plugin?) that could warn on pathologically complex regexes. Is building this kind of plugin feasible?
Having said that, probably few people would explicitly opt in to using such a plugin unless it's bundled by default to some linter.
- andreasklinger 11y agotechnically yes. but i wouldnt be surprised if deciding on "best practices" is hard given that regex are very often used to get something "just to work".
- oneeyedpigeon 11y agoWell, regex101 [1], linked in the article, detects it, so it's definitely possible. Whether that code is open, or it's easy to replicate, is another matter. [1] https://regex101.com/ https://regex101.com/