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