diff --git a/loterre-resolvers/v1/9SD/expand.ini b/loterre-resolvers/v1/9SD/expand.ini index 4d2b68a..6ad080e 100644 --- a/loterre-resolvers/v1/9SD/expand.ini +++ b/loterre-resolvers/v1/9SD/expand.ini @@ -35,7 +35,7 @@ [expand/assign] path = value -value = get('value').lowerCase() +value = fix(_.deburr(String(self.value).replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/\s]/g, '').toLowerCase())) [expand/combine] path = value diff --git a/loterre-resolvers/v1/9SD/identify.ini b/loterre-resolvers/v1/9SD/identify.ini index 7c616d0..6c69abf 100644 --- a/loterre-resolvers/v1/9SD/identify.ini +++ b/loterre-resolvers/v1/9SD/identify.ini @@ -38,8 +38,7 @@ # Flow configuration [JSONParse] -legacy = false -separator = $ +separator = * [expand] path = value @@ -48,7 +47,7 @@ [expand/assign] path = value -value = get('value').deburr().replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/\s]/g, '').lowerCase() +value = fix(_.deburr(String(self.value).replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/\s]/g, '').toLowerCase())) [expand/combine] path = value diff --git a/loterre-resolvers/v1/combine.ini b/loterre-resolvers/v1/combine.ini index 371a8ca..eef4190 100644 --- a/loterre-resolvers/v1/combine.ini +++ b/loterre-resolvers/v1/combine.ini @@ -47,7 +47,7 @@ flatten().\ filter(o => _.has(o, '$t')).\ map(o => _.deburr(String(o.$t).replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/\s]/g, '').toLowerCase())).\ - reduce((accumulator, value, key, collection) => (_.indexOf(collection, value) >= 0 ? accumulator.concat(value) : accumulator), []) + uniqBy('id') [exploding]