fix search engine. better match with modifier u (UTF8) for option \b

This commit is contained in:
Jean-Christian Paul Denis 2021-09-04 16:53:27 +02:00
parent ad346abb8f
commit 137ba6caa5

View File

@ -363,7 +363,7 @@ class libEPC
# Plural
$x = $filter['plural'] ? $p . 's|' . $p : $p;
# Mark words
$s = preg_replace('#(' . $before . ')(' . $x . ')(' . $after . ')#s' . $i, '$1ççççç$2ççççç$3', $s, -1, $count);
$s = preg_replace('#(' . $before . ')(' . $x . ')(' . $after . ')#su' . $i, '$1ççççç$2ççççç$3', $s, -1, $count);
# Nothing to parse
if (!$count) {
return $s;