mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Escape a few more characters for in _.escapeRegExp for better narwhal/ringo/rhino support.
This commit is contained in:
4
dist/lodash.underscore.js
vendored
4
dist/lodash.underscore.js
vendored
@@ -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;
|
||||
@@ -4432,7 +4432,7 @@
|
||||
|
||||
/**
|
||||
* Escapes the RegExp special characters "\", "^", "$", ".", "|", "?", "*",
|
||||
* "+", "(", ")", "[", and "{" in `string`.
|
||||
* "+", "(", ")", "[", "]", "{" and "}" in `string`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
|
||||
Reference in New Issue
Block a user