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
|
public function isSatisfiedBy(string $value): bool
|
||||||
{
|
{
|
||||||
if(!empty($value) || !trim($value) === '') {
|
return preg_match($this->pattern, $value) === 1;
|
||||||
return preg_match($this->pattern, $value) === 1;
|
|
||||||
}else{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getErrorMessage(): string
|
public function getErrorMessage(): string
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue