From 137ba6caa58f3185a08ec2277523dde8f6494383 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 4 Sep 2021 16:53:27 +0200 Subject: [PATCH] fix search engine. better match with modifier u (UTF8) for option \b --- inc/lib.epc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/lib.epc.php b/inc/lib.epc.php index 8bcbdc7..7eb0df3 100644 --- a/inc/lib.epc.php +++ b/inc/lib.epc.php @@ -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;