Keyword highlighting is no longer case-sensitive
authorMarcel Werk <burntime@woltlab.com>
Mon, 5 Sep 2016 15:31:24 +0000 (17:31 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 5 Sep 2016 15:31:24 +0000 (17:31 +0200)
wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php

index f3c2d8f6b3f2288bef5f22a6d65d32ed30df6987..daac80b52ae158a396f1de3a2f215edfc3257f81 100644 (file)
@@ -195,7 +195,7 @@ class HtmlOutputNodeProcessor extends AbstractHtmlNodeProcessor {
                        $nodes[] = $node;
                }
                foreach ($nodes as $node) {
-                       $split = preg_split('+'.$keywordPattern.'+', $node->textContent, -1, PREG_SPLIT_DELIM_CAPTURE);
+                       $split = preg_split('+'.$keywordPattern.'+i', $node->textContent, -1, PREG_SPLIT_DELIM_CAPTURE);
                        $count = count($split);
                        if ($count == 1) return;