View Full Version : Small Highlight Patch

11-26-2003, 06:28 PM
Hi. When doing a search on keyword, if keyword is followed immediately by a period, and if keyword is not in any other snippet, PhpDig will return the resulting page but won't highlight the keyword. To fix this, do the following.

In search_function.php find:

$stop_regs = "[][(){}[:blank:]=&?!&#%\$£*@+%:;,'\"]";

and replace with the following:

$stop_regs = "[][(){}[:blank:]=&?!&#%\$£*@+%:;,\\.'\"]";