Skip to content
Snippets Groups Projects
Commit 1db218e9 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

do case insensitive search word highlighting in page FS#1297

darcs-hash:20080215180239-7ad00-2b9e1d5cff75f581a549bc3881a18cfffc53efb5.gz
parent f93b3b50
No related branches found
No related tags found
No related merge requests found
...@@ -267,7 +267,7 @@ function html_hilight($html,$regex){ ...@@ -267,7 +267,7 @@ function html_hilight($html,$regex){
$regex = preg_replace('![\[\]()/\\\\?\.+*]+!','',$regex); $regex = preg_replace('![\[\]()/\\\\?\.+*]+!','',$regex);
if ($regex === '') return $html; if ($regex === '') return $html;
$html = preg_replace_callback("/((<[^>]*)|$regex)/i",'html_hilight_callback',$html); $html = preg_replace_callback("/((<[^>]*)|$regex)/ui",'html_hilight_callback',$html);
return $html; return $html;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment