fix: Доп. проверки значений
This commit is contained in:
parent
33565c9f7e
commit
b20ea0e7dc
8 changed files with 45 additions and 39 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue