IDEA will not allow this error and i have not been able to find an option to turn off these kinds of errors. does anyone know how to fix the error or turn off the warning. The javascript works fine only IDEA sees this as a problem
You are creating a range by using the hyphen(-) in mid of your character class. You should move it to either end.
Also, note that you don't need to escape the regex meta-characters inside the character class. They loose their meanings in there.
So, just use:
[-\w._+%]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With