DmitrySoshnikov / regexp-tree

Regular expressions processor in JavaScript
MIT License
400 stars 45 forks source link

False positive on optimize #241

Open coderaiser opened 2 years ago

coderaiser commented 2 years ago

From deepscan.io:

Character range 'A-z' also matches non-alphabetical characters '[', '\', ']', '^', '_' and '`'. 
Did you mean 'A-Za-z' instead?

After transforming [a-zA-Z]