mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Tweak UglifyJS "comments" option and update vendor/benchmark.js.
Former-commit-id: 6f09f27936f9453c58138e216399a51732a00173
This commit is contained in:
5
vendor/benchmark.js/benchmark.js
vendored
5
vendor/benchmark.js/benchmark.js
vendored
@@ -1648,7 +1648,10 @@
|
||||
function interpolate(string, object) {
|
||||
forOwn(object, function(value, key) {
|
||||
// escape regexp special characters in `key`
|
||||
string = string.replace(RegExp('#\\{' + key.replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1') + '\\}', 'g'), value);
|
||||
string = string.replace(
|
||||
RegExp('#\\{' + key.replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1') + '\\}', 'g'),
|
||||
value.replace(/\$/g, '$$$$')
|
||||
);
|
||||
});
|
||||
return string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user