Remove comment about IE in |quoteForRegexpClass|
We escape null for general compatibility (see comment at the top of the function), not only because of IE.
This commit is contained in:
parent
a0898388fb
commit
d002cd6ff6
|
@ -128,7 +128,7 @@ function quoteForRegexpClass(s) {
|
||||||
.replace(/\//g, '\\/') // closing slash
|
.replace(/\//g, '\\/') // closing slash
|
||||||
.replace(/\]/g, '\\]') // closing bracket
|
.replace(/\]/g, '\\]') // closing bracket
|
||||||
.replace(/-/g, '\\-') // dash
|
.replace(/-/g, '\\-') // dash
|
||||||
.replace(/\0/g, '\\0') // null, IE needs this
|
.replace(/\0/g, '\\0') // null
|
||||||
.replace(/\t/g, '\\t') // horizontal tab
|
.replace(/\t/g, '\\t') // horizontal tab
|
||||||
.replace(/\n/g, '\\n') // line feed
|
.replace(/\n/g, '\\n') // line feed
|
||||||
.replace(/\v/g, '\\x0B') // vertical tab
|
.replace(/\v/g, '\\x0B') // vertical tab
|
||||||
|
|
Loading…
Reference in a new issue