Skip to content

Commit

Permalink
Escape a few more characters for in _.escapeRegExp for better narwh…
Browse files Browse the repository at this point in the history
…al/ringo/rhino support.
  • Loading branch information
jdalton committed Mar 3, 2014
1 parent 13c98e7 commit 06d3740
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions dist/lodash.compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
* See this [article on RegExp characters](http://www.regular-expressions.info/characters.html#special)
* for more details.
*/
var reRegExpChars =/[.*+?^${()|[\\]/g;
var reRegExpChars = /[.*+?^${}()|[\]\\]/g;

/** Used to detect functions containing a `this` reference */
var reThis = /\bthis\b/;
Expand Down Expand Up @@ -6863,7 +6863,7 @@

/**
* Escapes the RegExp special characters "\", "^", "$", ".", "|", "?", "*",
* "+", "(", ")", "[", and "{" in `string`.
* "+", "(", ")", "[", "]", "{" and "}" in `string`.
*
* @static
* @memberOf _
Expand Down
2 changes: 1 addition & 1 deletion dist/lodash.compat.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/lodash.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
* See this [article on RegExp characters](http://www.regular-expressions.info/characters.html#special)
* for more details.
*/
var reRegExpChars =/[.*+?^${()|[\\]/g;
var reRegExpChars = /[.*+?^${}()|[\]\\]/g;

/** Used to detect functions containing a `this` reference */
var reThis = /\bthis\b/;
Expand Down Expand Up @@ -6585,7 +6585,7 @@

/**
* Escapes the RegExp special characters "\", "^", "$", ".", "|", "?", "*",
* "+", "(", ")", "[", and "{" in `string`.
* "+", "(", ")", "[", "]", "{" and "}" in `string`.
*
* @static
* @memberOf _
Expand Down
2 changes: 1 addition & 1 deletion dist/lodash.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/lodash.underscore.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
* See this [article on RegExp characters](http://www.regular-expressions.info/characters.html#special)
* for more details.
*/
var reRegExpChars =/[.*+?^${()|[\\]/g;
var reRegExpChars = /[.*+?^${}()|[\]\\]/g;

/** Used to match unescaped characters in compiled string literals */
var reUnescapedString = /['\n\r\t\u2028\u2029\\]/g;
Expand Down Expand Up @@ -4432,7 +4432,7 @@

/**
* Escapes the RegExp special characters "\", "^", "$", ".", "|", "?", "*",
* "+", "(", ")", "[", and "{" in `string`.
* "+", "(", ")", "[", "]", "{" and "}" in `string`.
*
* @static
* @memberOf _
Expand Down
2 changes: 1 addition & 1 deletion dist/lodash.underscore.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lodash.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
* See this [article on RegExp characters](http://www.regular-expressions.info/characters.html#special)
* for more details.
*/
var reRegExpChars =/[.*+?^${()|[\\]/g;
var reRegExpChars = /[.*+?^${}()|[\]\\]/g;

/** Used to detect functions containing a `this` reference */
var reThis = /\bthis\b/;
Expand Down Expand Up @@ -6900,7 +6900,7 @@

/**
* Escapes the RegExp special characters "\", "^", "$", ".", "|", "?", "*",
* "+", "(", ")", "[", and "{" in `string`.
* "+", "(", ")", "[", "]", "{" and "}" in `string`.
*
* @static
* @memberOf _
Expand Down

0 comments on commit 06d3740

Please sign in to comment.