[refs #321]: correct makePathArray function in utils (#326)

This commit is contained in:
qmorel
2017-07-19 14:43:32 -06:00
committed by Tanner Linsley
parent bbebf02a55
commit 688afd2947
+4 -4
View File
@@ -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 = []) {