JSLint reports "Insecure ^" for my regex -- what does that mean? -
I'm trying to get my javascript code 100% JSLIIN clean.
A regular expression to me:
linkRgx = / https ?: \ / \ / [^ \ s; | JSON Report: Unsecured '^' & nbsp;
Does the character use the rejection of the set "unsafe"?
[^ \ s | | \\ * '"!, () & Lt; & Gt;]
matches any ASCII characters other than the ones listed, and since any non-ASCII characters are familiar with Javascript strings Unicode, this means that each letter is known for Unicode. I can see a lot of evil there.
Instead of disabling the warning, I would like to rewrite the character squared which you want do to match those characters Because it regex from:
/ \ bhttps: \ / \ / [-?! \ W + & amp; @ # /% = ~ | $ :;] * [\ w + & amp; @ # /% = ~ | $] / G
Comments
Post a Comment