minor
This commit is contained in:
parent
779e68b731
commit
3ea81cdba5
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user