From d4ccb73dccf11a7eada11078b3e4d33afba33c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 30 Dec 2014 23:32:09 +0100 Subject: [PATCH] fix trim in parenthesis --- Search/SearchProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Search/SearchProvider.php b/Search/SearchProvider.php index f173cd729..035b1e165 100644 --- a/Search/SearchProvider.php +++ b/Search/SearchProvider.php @@ -87,7 +87,7 @@ class SearchProvider //strip parenthesis if (mb_substr($match, 0, 1) === '(' && mb_substr($match, mb_strlen($match) - 1) === ')') { - $match = mb_substr($match, 1, mb_strlen($match)-2); + $match = trim(mb_substr($match, 1, mb_strlen($match)-2)); } $terms[$matches[1][$key]] = $match; }