mirror of
https://github.com/processwire/processwire.git
synced 2025-08-15 11:14:12 +02:00
Fix issue where '~=' word matches with words containing underscore '_' weren't working due to change made in 3.0.167
This commit is contained in:
@@ -489,7 +489,6 @@ class DatabaseQuerySelectFulltext extends Wire {
|
||||
foreach($data['likeWords'] as $word) {
|
||||
$isStopword = isset($data['stopWords'][$word]);
|
||||
if($isStopword && !$this->allowStopwords) continue;
|
||||
$word = $this->escapeLike($word);
|
||||
if(!strlen($word)) continue;
|
||||
if($partial || ($partialLast && $word === $data['lastWord'])) {
|
||||
// just match partial word from beginning
|
||||
@@ -884,7 +883,7 @@ class DatabaseQuerySelectFulltext extends Wire {
|
||||
$likeWords = array();
|
||||
$altWords = array();
|
||||
$joinWords = array();
|
||||
$joiners = array('->', '-', '.', '_', ':');
|
||||
$joiners = array('->', '-', '.', ':');
|
||||
|
||||
// get all words
|
||||
$allWords = $this->words($value);
|
||||
|
Reference in New Issue
Block a user