1
0
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:
Ryan Cramer
2020-10-18 09:29:02 -04:00
parent 4b84c82529
commit 3782b6c7ae

View File

@@ -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);