gopycc / ie7-js

Automatically exported from code.google.com/p/ie7-js
0 stars 0 forks source link

character class \w cannot be used inside character range #299

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
var dq = /^(\\.|[' >+~#.\[\]:*(),\w-\^|$=]|[^\x00-\xa0])+$/,dE = /^(href|src)$/

I am not in expert in regexprs but Idea 10 says:
"Error: character class \w cannot be used inside character range"
pointing at "\w"
May we it is worth replacing with a-zA-Z0-9_
?

Original issue reported on code.google.com by leo.kuzn...@gmail.com on 27 Jan 2011 at 11:56