Closed pwfisher closed 8 years ago
@@ master #45 diff @@
===================================
Files 1 1
Lines 84 84
Methods 12 12
Messages 0 0
Branches 19 19
===================================
Hits 84 84
Misses 0 0
Partials 0 0
Powered by Codecov. Last update bf3c323...a8e6502
In my app, this change appears to have significantly improved performance. (Like 30-50% for JS files.)
I attribute it primarily to the more restrictive matching for the very first symbol in the pattern (no longer processing a potential match for each backslash).
can you add tests?
Why would you say it was unintentionally included? Although, I can not recall why, I would not have put \\
there without a reason.
I say unintentional because the comments describe the intended behavior and it makes no sense to repeat the same character several times within a character class. You must have thought that characters which need escaping outside of a character class also needed escaping inside a character class. It's a very understandable mistake.
Superseded by #46, which includes a failing test for JS processing performance in a real-world scenario.