Skip to content

Commit

Permalink
stringToPath: avoid shadowing variable. (#3226)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Feb 3, 2018
1 parent 45ac7f3 commit 20c5307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lodash.js
Original file line number Diff line number Diff line change
Expand Up @@ -6730,8 +6730,8 @@
if (reLeadingDot.test(string)) {
result.push('');
}
string.replace(rePropName, function(match, number, quote, string) {
result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
string.replace(rePropName, function(match, number, quote, subString) {
result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
});
return result;
});
Expand Down

0 comments on commit 20c5307

Please sign in to comment.