mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Update vendors.
Former-commit-id: aff34ccd5d3c6e3e78aeb5832e694171fca35412
This commit is contained in:
6
vendor/benchmark.js/benchmark.js
vendored
6
vendor/benchmark.js/benchmark.js
vendored
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* Benchmark.js v1.0.0 <http://benchmarkjs.com/>
|
||||
* Copyright 2010-2012 Mathias Bynens <http://mths.be/>
|
||||
* Copyright 2010-2013 Mathias Bynens <http://mths.be/>
|
||||
* Based on JSLitmus.js, copyright Robert Kieffer <http://broofa.com/>
|
||||
* Modified by John-David Dalton <http://allyoucanleet.com/>
|
||||
* Available under MIT license <http://mths.be/mit>
|
||||
@@ -990,7 +990,7 @@
|
||||
result = String(fn);
|
||||
} else if (support.decompilation) {
|
||||
// escape the `{` for Firefox 1
|
||||
result = (/^[^{]+\{([\s\S]*)}\s*$/.exec(fn) || 0)[1];
|
||||
result = (/^[^{]+\{([\s\S]*)\}\s*$/.exec(fn) || 0)[1];
|
||||
}
|
||||
// trim string
|
||||
result = (result || '').replace(/^\s+|\s+$/g, '');
|
||||
@@ -1649,7 +1649,7 @@
|
||||
forOwn(object, function(value, key) {
|
||||
// escape regexp special characters in `key`
|
||||
string = string.replace(
|
||||
RegExp('#\\{' + key.replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1') + '\\}', 'g'),
|
||||
RegExp('#\\{' + key.replace(/([.*+?^${}()|[\]\\])/g, '\\$1') + '\\}', 'g'),
|
||||
value.replace(/\$/g, '$$$$')
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user