mirror of
https://github.com/processwire/processwire.git
synced 2025-08-07 15:26:54 +02:00
Fix issue processwire/processwire-issues#1950
This commit is contained in:
@@ -1269,7 +1269,7 @@ class DatabaseQuerySelectFulltext extends Wire {
|
||||
|
||||
if(strpos($likeValue, "'") !== false || strpos($likeValue, "’") !== false) {
|
||||
// match either straight or curly apostrophe
|
||||
$likeValue = preg_replace('/[\'’]+/', '(\'|’)', $likeValue);
|
||||
$likeValue = str_replace([ "'", "’" ], "('|’)", $likeValue);
|
||||
// if word ends with apostrophe then apostrophe is optional
|
||||
$likeValue = rtrim(str_replace("('|’) ", "('|’)? ", "$likeValue "));
|
||||
}
|
||||
|
Reference in New Issue
Block a user