Skip to content

Commit 9bd96b2

Browse files
author
vc-sahil
committed
Check special character in word refining
1 parent bf0628b commit 9bd96b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/helpers.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ function refiner($request)
2626
$detectWords = array_flip($detectWords);
2727

2828
foreach ($requestedString as $words) {
29-
if (!isset($detectWords[$words])) {
29+
$filterWords = rtrim(clean($words), '.');
30+
if (!isset($detectWords[$filterWords])) {
3031
$filterString[] = $words;
3132
}
3233
}

0 commit comments

Comments
 (0)