Skip to content

Commit

Permalink
Fix stringToPath bug for consecutive [] (lodash#4319)
Browse files Browse the repository at this point in the history
  • Loading branch information
futurist authored and jdalton committed Jun 7, 2019
1 parent 8fdf0ed commit 488e62b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .internal/stringToPath.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const rePropName = RegExp(
// Or match property names within brackets.
'\\[(?:' +
// Match a non-string expression.
'([^"\'].*)' + '|' +
'([^"\'][^[]*)' + '|' +
// Or match strings (supports escaping characters).
'(["\'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2' +
')\\]'+ '|' +
Expand Down

0 comments on commit 488e62b

Please sign in to comment.