3 ms·
if (i.match(/^[$A-Z_][0-9A-Z_$]*$/i)) { broken
by indubitably 14y ago
if (i.match(/^[$A-Z_][0-9A-Z_$]*$/i)) {
broken
- begriffs 14y agoYou're saying it is too simple of a regex to reliably match well-behaved js identifiers? Or is it broken in another way as well? What would you suggest as a better test?