From 970fb26d0cdb6e0ab6f265076c504642d03fdc9a Mon Sep 17 00:00:00 2001 From: Eli Doran Date: Sat, 17 Dec 2016 06:42:09 -0500 Subject: [PATCH] remove unnecessary escapes (according to npm test results) --- lib/parse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parse.js b/lib/parse.js index d1201888..e9a57619 100755 --- a/lib/parse.js +++ b/lib/parse.js @@ -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