Add the start/end line in fts
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3462 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
4
fts.php
4
fts.php
@@ -127,9 +127,9 @@ class fts
|
|||||||
$operator[$key] = "NOT REGEXP";
|
$operator[$key] = "NOT REGEXP";
|
||||||
else
|
else
|
||||||
$operator[$key] = "REGEXP";
|
$operator[$key] = "REGEXP";
|
||||||
$value[$key] = "(^|[<> \(\",.;/:!?])".
|
$value[$key] = "(^|[<> \(\",.;/:!?\r\n])".
|
||||||
preg_quote ($token).
|
preg_quote ($token).
|
||||||
"([<> \)\",.;/:!?]|$)";
|
"([<> \)\",.;/:!?\r\n]|$)";
|
||||||
}
|
}
|
||||||
return array ("operator"=>$operator, "value"=>$value);
|
return array ("operator"=>$operator, "value"=>$value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user