From 05d7abe0d345ab0d33204c2f89d010694990de1f Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Mon, 27 Mar 2017 14:29:51 +0000 Subject: [PATCH] Add the start/end line in fts git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3462 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- fts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }