Escape } in regexes used in lodash.js. [closes #179]

Former-commit-id: 7b4687f3967079e19025fccc3f54b7fc5fcc4ff9
This commit is contained in:
John-David Dalton
2013-02-12 00:23:57 -08:00
parent c3b1af31ce
commit d9c95e7730
9 changed files with 17 additions and 17 deletions

View File

@@ -55,7 +55,7 @@
* Used to match ES6 template delimiters
* http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6
*/
var reEsTemplate = /\$\{((?:(?=\\?)\\?[\s\S])*?)}/g;
var reEsTemplate = /\$\{((?:(?=\\?)\\?[\s\S])*?)\}/g;
/** Used to match "interpolate" template delimiters */
var reInterpolate = /<%=([\s\S]+?)%>/g;
@@ -152,7 +152,7 @@
var hasObjectSpliceBug = (hasObjectSpliceBug = { '0': 1, 'length': 1 },
arrayRef.splice.call(hasObjectSpliceBug, 0, 1), hasObjectSpliceBug[0]);
/** Detect if `arguments` object indexes are non-enumerable (Firefox < 4, IE < 9, Safari < 5.1) */
/** Detect if `arguments` object indexes are non-enumerable (Firefox < 4, IE < 9, PhantomJS, Safari < 5.1) */
var nonEnumArgs = true;
(function() {
@@ -4564,7 +4564,7 @@
* http://lodash.com/#custom-builds
*
* For more information on Chrome extension sandboxes see:
* http://developer.chrome.com/trunk/extensions/sandboxingEval.html
* http://developer.chrome.com/stable/extensions/sandboxingEval.html
*
* @static
* @memberOf _