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 = []) {