Compare commits

..

2 Commits
1.0.4 ... main

Author SHA1 Message Date
Dorian Contal 5acb21d503 Changement nom README pour affichage dans packagist 2025-05-14 10:53:04 +02:00
Dorian 6853bf95ae Condition si var vide non obligatoire mais regex 2025-05-14 10:46:22 +02:00
2 changed files with 5 additions and 1 deletions

View File

@ -15,7 +15,11 @@ 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;
}
}
public function getErrorMessage(): string