From 20c5307542cd255d5b1f96e35f4c2da264a7da3c Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 2 Feb 2018 15:51:14 -0800 Subject: [PATCH] stringToPath: avoid shadowing variable. (#3226) --- lodash.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lodash.js b/lodash.js index d022e6ccb..fb561d94a 100644 --- a/lodash.js +++ b/lodash.js @@ -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; });