From d002cd6ff6857c3eb48035b0c33f677dcd8df28b Mon Sep 17 00:00:00 2001 From: David Majda Date: Mon, 13 Feb 2012 08:13:01 +0100 Subject: [PATCH] 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. --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index a30f91f..d4daa8e 100644 --- a/src/utils.js +++ b/src/utils.js @@ -128,7 +128,7 @@ function quoteForRegexpClass(s) { .replace(/\//g, '\\/') // closing slash .replace(/\]/g, '\\]') // closing bracket .replace(/-/g, '\\-') // dash - .replace(/\0/g, '\\0') // null, IE needs this + .replace(/\0/g, '\\0') // null .replace(/\t/g, '\\t') // horizontal tab .replace(/\n/g, '\\n') // line feed .replace(/\v/g, '\\x0B') // vertical tab