admin管理员组

文章数量:1291029

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

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

Share Improve this question asked Jul 1, 2013 at 22:16 spy-killerspy-killer 4054 silver badges18 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 16

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._+%]

本文标签: javascriptIntellij IDEA regex character class may not be used inside character rangeStack Overflow