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