Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Dollar sign is a RegExp special

  • Loading branch information...
commit 9bf2db48132d5fea34a36de1261b295169f22025 1 parent ed71d1f
mde authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/string.js
View
2  lib/string.js
@@ -112,7 +112,7 @@ string = new (function () {
@param {String} string The string of chars to escape
*/
this.escapeRegExpChars = (function() {
- var specials = [ '^', '/', '.', '*', '+', '?', '|', '(', ')',
+ var specials = [ '^', '$', '/', '.', '*', '+', '?', '|', '(', ')',
'[', ']', '{', '}', '\\' ];
sRE = new RegExp('(\\' + specials.join('|\\') + ')', 'g');
return function (string) {
Please sign in to comment.
Something went wrong with that request. Please try again.