All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Foreign characters not getting highlighted when searched

Marco 10 Oct 2012 12:24 question, complete

Hi again!
I have implemented the highlight feature in version 2.0.4, but for some reason the text is not highlighting any foreign characters. Am I doing something incorrect? can I fix this somehow?

Replies

  1. Low 10 Oct 2012 12:31

    That's actually fixed for the next version. In the mean time, open up ext.low_search.php in a text editor, and change line #546 from:

    $tmp = preg_split('/\W/', $params['keywords'], NULL, PREG_SPLIT_NO_EMPTY);


    to

    $tmp = preg_split('/\s/', $params['keywords'], NULL, PREG_SPLIT_NO_EMPTY);

  2. Marco 10 Oct 2012 12:36

    Great! worked like a charm!

    Thanks again!