From bc9a2528ef7edf6e9f2bf5c3de49eed8d423daaa Mon Sep 17 00:00:00 2001 From: David Majda Date: Wed, 21 Nov 2012 08:35:43 +0100 Subject: [PATCH] Add backslash forgotten in the previous commit --- lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.js b/lib/utils.js index 358bf0c..18018f4 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -183,7 +183,7 @@ var utils = { .replace(/\\/g, '\\\\') // backslash .replace(/\//g, '\\/') // closing slash .replace(/\]/g, '\\]') // closing bracket - .replace(/^/g, '\\^') // caret + .replace(/\^/g, '\\^') // caret .replace(/-/g, '\\-') // dash .replace(/\0/g, '\\0') // null .replace(/\t/g, '\\t') // horizontal tab