mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
fix trim in parenthesis
This commit is contained in:
parent
e82fa5d3e0
commit
d4ccb73dcc
@ -87,7 +87,7 @@ class SearchProvider
|
|||||||
//strip parenthesis
|
//strip parenthesis
|
||||||
if (mb_substr($match, 0, 1) === '(' &&
|
if (mb_substr($match, 0, 1) === '(' &&
|
||||||
mb_substr($match, mb_strlen($match) - 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;
|
$terms[$matches[1][$key]] = $match;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user