Compare commits
No commits in common. "main" and "1.0.4" have entirely different histories.
|
|
@ -15,11 +15,7 @@ class RegexColumnSpecification implements ColumnSpecificationInterface
|
|||
|
||||
public function isSatisfiedBy(string $value): bool
|
||||
{
|
||||
if(!empty($value) || !trim($value) === '') {
|
||||
return preg_match($this->pattern, $value) === 1;
|
||||
}else{
|
||||
return true;
|
||||
}
|
||||
return preg_match($this->pattern, $value) === 1;
|
||||
}
|
||||
|
||||
public function getErrorMessage(): string
|
||||
|
|
|
|||
Loading…
Reference in New Issue