mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Avoid bug in older browsers where an unmatched capture group returns an empty string.
This commit is contained in:
@@ -4571,7 +4571,7 @@
|
|||||||
}
|
}
|
||||||
var result = [];
|
var result = [];
|
||||||
baseToString(value).replace(rePropName, function(match, number, quote, string) {
|
baseToString(value).replace(rePropName, function(match, number, quote, string) {
|
||||||
result.push(typeof string == 'string' ? string : (number || match));
|
result.push(quote ? string : (number || match));
|
||||||
});
|
});
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user