Skip to content

Commit

Permalink
Merge pull request #1515 from rbayet/fix_1514_thesaurus_multi_words_a…
Browse files Browse the repository at this point in the history
…ccents_support

Fixes #1514 Accents support in multi-words synonyms/expansions
  • Loading branch information
romainruaud authored Aug 27, 2019
2 parents d6dc4ff + 0f484b9 commit 6213a95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ private function addAnalyzerSettings($settings, $type, $values)
private function prepareSynonymFilterData($rows)
{
$rowMaper = function ($row) {
return preg_replace('/([\w])[\s-](?=[\w])/', '\1_', $row);
return preg_replace('/([\w])[\s-](?=[\w])/u', '\1_', $row);
};

return array_map($rowMaper, $rows);
Expand Down

0 comments on commit 6213a95

Please sign in to comment.