From: Evan Prodromou Date: Wed, 9 Jul 2008 21:50:11 +0000 (-0400) Subject: ignore case when highlighting X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0ec918604a9082170ee1dc81907d86a479dac1b2;p=quix0rs-gnu-social.git ignore case when highlighting darcs-hash:20080709215011-84dde-29c80d3210e337614980b647c58b5720b7bfc35f.gz --- diff --git a/actions/peoplesearch.php b/actions/peoplesearch.php index a4e9308cf6..cf79e52e98 100644 --- a/actions/peoplesearch.php +++ b/actions/peoplesearch.php @@ -132,7 +132,7 @@ class PeoplesearchAction extends Action { } function highlight($text, $terms) { - $pattern = '/('.implode('|',array_map('htmlspecialchars', $terms)).')/'; + $pattern = '/('.implode('|',array_map('htmlspecialchars', $terms)).')/i'; $result = preg_replace($pattern, '\\1', $text); return $result; }