mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 07:17:50 +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 = [];
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user