Avoid bug in older browsers where an unmatched capture group returns an empty string.

This commit is contained in:
jdalton
2015-03-31 09:09:17 -07:00
parent f4290bda7f
commit 0907aabacd

View File

@@ -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;
}