diff --git a/loterre-resolvers/v1/combine.ini b/loterre-resolvers/v1/combine.ini index d6cd7b1..f892578 100644 --- a/loterre-resolvers/v1/combine.ini +++ b/loterre-resolvers/v1/combine.ini @@ -19,8 +19,8 @@ plugin = analytics # Flow configuration -[URLStream] -path = false +#[URLStream] +#path = false [XMLParse] separator = /rdf:RDF/skos:Concept @@ -46,7 +46,7 @@ value = fix(_.get(self, 'skos$prefLabel'), _.get(self, 'skos$altLabel'), _.get(self, 'skos$hiddenLabel')). \ flatten().\ filter(o => _.has(o, '$t')).\ - map(o =>_.lowerCase(_.trim((o.$t)))).\ + map(o => String(o.$t).replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/\s]/g, '').toLowerCase()).\ reduce((accumulator, value, key, collection) => (_.indexOf(collection, value) >= 0 ? accumulator.concat(value) : accumulator), [])