From: Marcel Werk Date: Wed, 14 Oct 2015 13:00:29 +0000 (+0200) Subject: Improved search keyword highlighting X-Git-Tag: 2.1.8~23 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e58c6c36f4dddcd036e08404ee396176d330340e;p=GitHub%2FWoltLab%2FWCF.git Improved search keyword highlighting --- diff --git a/wcfsetup/install/files/lib/system/bbcode/KeywordHighlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/KeywordHighlighter.class.php index 90020040a3..c9ea142c88 100644 --- a/wcfsetup/install/files/lib/system/bbcode/KeywordHighlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/KeywordHighlighter.class.php @@ -103,7 +103,7 @@ class KeywordHighlighter extends SingletonFactory { $keywordString = preg_replace('/(?<()~]+/', '', $keywordString); + $keywordString = preg_replace('/[\+\-><()~]+/', ' ', $keywordString); if (mb_substr($keywordString, 0, 1) == '"' && mb_substr($keywordString, -1) == '"') { // phrases search