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

This commit is contained in:
qmorel
2017-07-19 22:43:32 +02:00
committed by Tanner Linsley
parent bbebf02a55
commit 688afd2947

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