Merge pull request #3349 from bantu/ticket/12933

[ticket/12933] Handle case when * is last character of word

* bantu/ticket/12933:
  [ticket/12933] Handle case when * is last character of word
This commit is contained in:
Andreas Fischer 2015-01-29 00:03:05 +01:00
commit 8da3a6f117

View file

@ -204,7 +204,7 @@ class fulltext_native extends search_backend
$this->search_query = $keywords; $this->search_query = $keywords;
$exact_words = array(); $exact_words = array();
preg_match_all('#([^\\s+\\-|*()]+)(?:$|[\\s+\\-|()])#u', $keywords, $exact_words); preg_match_all('#([^\\s+\\-|()]+)(?:$|[\\s+\\-|()])#u', $keywords, $exact_words);
$exact_words = $exact_words[1]; $exact_words = $exact_words[1];
$common_ids = $words = array(); $common_ids = $words = array();