Last 12 weeks · 0 commits
1 of 6 standards met
These regular expressions are bad, particularly the way they're used — every time a character is found, we take a chunk of the original string (which could be almost all of it) and run a regex that will keep trying and failing to match, maybe thousands of times. Could achieve the same thing far more performantly by manually backtracking a little way and seeing what came before the .
Repository: Rich-Harris/tippex. Description: Find and erase strings and comments in JavaScript code Stars: 14, Forks: 7. Primary language: JavaScript. Languages: JavaScript (99.8%), HTML (0.2%). Open PRs: 4, open issues: 2. Last activity: 5y ago. Community health: 28%. Top contributors: Rich-Harris, heavyk, ochafik, npmcdn-to-unpkg-bot.