From 688afd29475cef5c8c38b430dfc451f598f4871a Mon Sep 17 00:00:00 2001 From: qmorel Date: Wed, 19 Jul 2017 22:43:32 +0200 Subject: [PATCH] [refs #321]: correct makePathArray function in utils (#326) --- src/utils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils.js b/src/utils.js index 8d7a02b..cb875c3 100644 --- a/src/utils.js +++ b/src/utils.js @@ -152,10 +152,10 @@ function isArray (a) { function makePathArray (obj) { return flattenDeep(obj) - .join('.') - .replace('[', '.') - .replace(']', '') - .split('.') + .join('.') + .replace(/\[/g, '.') + .replace(/\]/g, '') + .split('.') } function flattenDeep (arr, newArr = []) {