vnc-dungnh / lucene-silverstripe-plugin

Automatically exported from code.google.com/p/lucene-silverstripe-plugin
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Slash recognised as modifier #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Typing the search query "ac/dc"

What is the expected output? What do you see instead?
Thiss will raise a php-Warning

Line 52 in 
/home/robert/projekte/doo.dev.local/html/lucene/code/ZendSearchLuceneTextHighlig
htDecorator.php:
$text = preg_replace("/\b($word)\b/i", '<strong>\1</strong>', $text);

Kind regards,
Robert

Original issue reported on code.google.com by r.schwan...@gmail.com on 16 Aug 2011 at 12:51