diff --git a/fts.php b/fts.php index 8f2ee43..1d5c371 100644 --- a/fts.php +++ b/fts.php @@ -148,9 +148,9 @@ class fts $operator[$key] = "NOT REGEXP"; else $operator[$key] = "REGEXP"; - $value[$key] = "(^|[<> \(\",.;/:!?\r\n])". + $value[$key] = "(^|[<> \(\"',.;/:!?\r\n])". preg_quote ($token). - "([<> \)\",.;/:!?\r\n]|$)"; + "([<> \)\"',.;/:!?\r\n]|$)"; } return array ("operator"=>$operator, "value"=>$value); }