From e58c6c36f4dddcd036e08404ee396176d330340e Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 14 Oct 2015 15:00:29 +0200 Subject: [PATCH] Improved search keyword highlighting --- .../files/lib/system/bbcode/KeywordHighlighter.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1