Development

Changeset 7088

You must first sign up to be able to contribute.

Changeset 7088

Show
Ignore:
Timestamp:
01/19/08 18:57:20 (9 months ago)
Author:
Carl.Vondrick
Message:

sfLucene: fixing unicode modifiers in highlighters (refs #2757)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfLucenePlugin/branches/1.0/modules/sfLucene/lib/helper/sfLuceneHelper.php

    r6093 r7088  
    6161function add_highlight_qs($query, $keywords) 
    6262{ 
    63   $keywords = preg_split('/\W+/', $keywords, -1, PREG_SPLIT_NO_EMPTY); 
     63  $keywords = preg_split('/\W+/u', $keywords, -1, PREG_SPLIT_NO_EMPTY); 
    6464 
    6565  $suffix = ''; 
    6666 
    67   if (preg_match('/(#\w+)$/', $query, $matches, PREG_OFFSET_CAPTURE)) 
     67  if (preg_match('/(#\w+)$/u', $query, $matches, PREG_OFFSET_CAPTURE)) 
    6868  { 
    6969    $query = substr($query, 0, $matches[0][1]);