This commit is contained in:
Dr Masroor Ehsan 2025-01-23 14:36:36 +06:00
parent 779e68b731
commit 3ea81cdba5

View File

@ -26,7 +26,9 @@ private static function matchList(string $input, string $pattern): bool
{ {
$patterns = collect(explode(',', $pattern)) $patterns = collect(explode(',', $pattern))
->map(fn ($s) => trim($s)) ->map(fn ($s) => trim($s))
->filter(fn ($s) => filled($s)); ->filter(fn ($s) => filled($s))
->toArray();
foreach ($patterns as $search) { foreach ($patterns as $search) {
if (self::match($input, $search, MatchMode::Exact)) { if (self::match($input, $search, MatchMode::Exact)) {
return true; return true;