r26271 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26270‎ | r26271 | r26272 >
Date:13:10, 1 October 2007
Author:brion
Status:old
Tags:
Comment:
* (bug 278) Search results no longer highlight incorrect partial word matches
for lucene search too...
Modified paths:
  • /trunk/extensions/LuceneSearch/LuceneSearch_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LuceneSearch/LuceneSearch_body.php
@@ -404,7 +404,7 @@
405405 * @access private
406406 */
407407 function regexQuote( $term ) {
408 - return preg_quote( $term, '/' );
 408+ return '\b' . preg_quote( $term, '/' ) . '\b';
409409 }
410410
411411 /**

Follow-up revisions

RevisionCommit summaryAuthorDate
r26280Merged revisions 26248-26279 via svnmerge from...david19:12, 1 October 2007

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r26269* (bug 278) Search results no longer highlight incorrect partial word matchesbrion13:05, 1 October 2007

Status & tagging log