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;