fix trim in parenthesis

This commit is contained in:
Julien Fastré 2014-12-30 23:32:09 +01:00
parent e82fa5d3e0
commit d4ccb73dcc

View File

@ -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;
}