diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-04-20 21:42:53 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-04-20 21:42:53 +0200 |
commit | 8a803cae76e430dc0f358986db3420ef45049370 (patch) | |
tree | 2c544b5bb06ef0e5de0e72c111c5814f2daeb1e6 /inc/fulltext.php | |
parent | 921ba557ebfbe154e3771715471d9f65630a464b (diff) | |
download | rpg-8a803cae76e430dc0f358986db3420ef45049370.tar.gz rpg-8a803cae76e430dc0f358986db3420ef45049370.tar.bz2 |
some edge case checking in search result highlighting
Diffstat (limited to 'inc/fulltext.php')
-rw-r--r-- | inc/fulltext.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/fulltext.php b/inc/fulltext.php index 620237296..8f4db111d 100644 --- a/inc/fulltext.php +++ b/inc/fulltext.php @@ -405,6 +405,8 @@ function ft_snippet_re_preprocess($term) { }else{ $term = $term.'\b'; } + + if($term == '\b' || $term == '\b\b') $term = ''; return $term; } |