mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 02:04:35 +02:00
Bump version to 3.0.160
This commit is contained in:
@@ -605,15 +605,17 @@ class DatabaseQuerySelectFulltext extends Wire {
|
||||
|
||||
foreach($words as $word) {
|
||||
$w = $this->escapeAGAINST($word);
|
||||
$pregWord = preg_quote($w);
|
||||
$pregWord = preg_quote($w, '!');
|
||||
if(stripos($value, "+$word*")) {
|
||||
$booleanValues[] = "+$w*";
|
||||
$booleanValues[] = "+$w*";
|
||||
} else if(stripos($value, "+$word") && preg_match('!\+' . $pregWord . '\b!i', $value)) {
|
||||
$booleanValues[] = "+$w";
|
||||
} else if(stripos($value, "-$word*")) {
|
||||
$booleanValues[] = "-$w*";
|
||||
} else if(stripos($value, "-$word") && preg_match('!-' . $pregWord . '\b!i', $value)) {
|
||||
$booleanValues[] = "-$w";
|
||||
$booleanValues[] = "-$w";
|
||||
} else if(stripos($value, "$word*") && preg_match('!\b' . $pregWord . '\*!i', $value)) {
|
||||
$booleanValues[] = "$w*";
|
||||
} else {
|
||||
$booleanValues[] = $w; // optional
|
||||
}
|
||||
|
@@ -77,7 +77,7 @@ class ProcessWire extends Wire {
|
||||
* Reversion revision number
|
||||
*
|
||||
*/
|
||||
const versionRevision = 159;
|
||||
const versionRevision = 160;
|
||||
|
||||
/**
|
||||
* Version suffix string (when applicable)
|
||||
|
@@ -59,7 +59,7 @@
|
||||
* - `SelectorContainsExpand` (3.0.160)
|
||||
* - `SelectorContainsMatch` (3.0.160)
|
||||
* - `SelectorContainsMatchExpand` (3.0.160)
|
||||
* - `SelectorContainsAdvance3d` (3.0.160)
|
||||
* - `SelectorContainsAdvanced` (3.0.160)
|
||||
* - `SelectorStarts`
|
||||
* - `SelectorStartsLike`
|
||||
* - `SelectorEnds`
|
||||
@@ -1017,7 +1017,7 @@ class SelectorContainsAdvanced extends SelectorContains {
|
||||
public static function getLabel() { return __('Advanced text search', __FILE__); }
|
||||
public static function getDescription() {
|
||||
return
|
||||
__('Match values with commands: +Word MUST appear, -Word MUST NOT appear, and unprefixed Word MAY appear (at least one matches).', __FILE__) . ' ' .
|
||||
__('Match values with commands: +Word MUST appear, -Word MUST NOT appear, and unprefixed Word may appear.', __FILE__) . ' ' .
|
||||
__('Add asterisk for partial match: Bar* or +Bar* matches bar, barn, barge; while -Bar* prevents matching them.') . ' ' .
|
||||
__('Use quotes to match phrases: +"Must Match", -"Must Not Match", or "May Match".');
|
||||
}
|
||||
|
Reference in New Issue
Block a user