From 186f2044485bbf74eaa63a1f838803d269c2247f Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 13 Aug 2023 20:26:44 +0300 Subject: [PATCH] trim request spaces --- src/library/sphinxql.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/library/sphinxql.php b/src/library/sphinxql.php index be4c93c..709d34b 100644 --- a/src/library/sphinxql.php +++ b/src/library/sphinxql.php @@ -49,6 +49,7 @@ class SphinxQL { private static function _match(string $keyword) : string { + $keyword = trim($keyword); $keyword = preg_replace('/[\:]+/', ':', $keyword); return sprintf(