fix: Доп. проверки значений

This commit is contained in:
origami11@yandex.ru 2025-11-12 19:41:24 +03:00
parent 33565c9f7e
commit b20ea0e7dc
8 changed files with 45 additions and 39 deletions

View file

@ -15,6 +15,6 @@ class PregMatch extends AbstractRule
public function isValid(Collection $container, $status = null): bool
{
return preg_match($this->pattern, $container->get($this->field));
return preg_match($this->pattern, $container->get($this->field)) !== false;
}
}