Skip to content

Commit

Permalink
remove unnecessary escapes (according to npm test results)
Browse files Browse the repository at this point in the history
  • Loading branch information
elidoran authored and ljharb committed Dec 17, 2016
1 parent 50ea161 commit 970fb26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ var parseKeys = function parseKeys(givenKey, val, options) {
}

// Transform dot notation to bracket notation
var key = options.allowDots ? givenKey.replace(/\.([^\.\[]+)/g, '[$1]') : givenKey;
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;

// The regex chunks

Expand Down

0 comments on commit 970fb26

Please sign in to comment.