mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 02:06:32 +02:00
Merge pull request #3338 from dhruvgoel92/ticket/12933
[ticket/12933] Handle *wildcard character in native search * dhruvgoel92/ticket/12933: [ticket/12933] Add test cases for * wildcard searches [ticket/12933] Handle case when * is last character of word
This commit is contained in:
@@ -300,7 +300,7 @@ class fulltext_native extends \phpbb\search\base
|
||||
$this->search_query = $keywords;
|
||||
|
||||
$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];
|
||||
|
||||
$common_ids = $words = array();
|
||||
|
Reference in New Issue
Block a user