diff --git a/src/utils.js b/src/utils.js index cb875c3..c16cbef 100644 --- a/src/utils.js +++ b/src/utils.js @@ -152,10 +152,10 @@ function isArray (a) { function makePathArray (obj) { return flattenDeep(obj) - .join('.') - .replace(/\[/g, '.') - .replace(/\]/g, '') - .split('.') + .join('.') + .replace(/\[/g, '.') + .replace(/\]/g, '') + .split('.') } function flattenDeep (arr, newArr = []) {