From 3ea81cdba54c275f114001b9c198aed390cffde5 Mon Sep 17 00:00:00 2001 From: Dr Masroor Ehsan Date: Thu, 23 Jan 2025 14:36:36 +0600 Subject: [PATCH] minor --- app/Services/ContentMatcher.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Services/ContentMatcher.php b/app/Services/ContentMatcher.php index 3d66768..52f67f2 100644 --- a/app/Services/ContentMatcher.php +++ b/app/Services/ContentMatcher.php @@ -26,7 +26,9 @@ private static function matchList(string $input, string $pattern): bool { $patterns = collect(explode(',', $pattern)) ->map(fn ($s) => trim($s)) - ->filter(fn ($s) => filled($s)); + ->filter(fn ($s) => filled($s)) + ->toArray(); + foreach ($patterns as $search) { if (self::match($input, $search, MatchMode::Exact)) { return true;