AGLint icon indicating copy to clipboard operation
AGLint copied to clipboard

Add new rule for detecting unnecessary escaped characters in regexp

Open AdamWr opened this issue 10 months ago • 0 comments

Sometimes some characters can be escaped when it's not necessary. For example it's not necessary to escape + in:

/\/[a-z0-9]{12}\/[a-zA-Z0-9\/\+]{1,10}$/

so it could be rewritten as:

/\/[a-z0-9]{12}\/[a-zA-Z0-9\/+]{1,10}$/

AdamWr avatar Feb 04 '25 18:02 AdamWr