I had seen this warning, but was mis-reading it as indicating that the line "use strict" was actually *causing* it, which I just could not figure out. Once the proper lines were pointed out, the fix was exactly what you mentioned (parens and $1).
Unfortunately this didn't really help performance much in this particular case... but it's a good fix anyway. Thanks!
In reply to Re^2: tight loop regex optimization
by superawesome
in thread tight loop regex optimization
by superawesome
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |