diff --git a/src/Service/Import/Specification/RegexColumnSpecification.php b/src/Service/Import/Specification/RegexColumnSpecification.php index 04b359d..2803ae0 100644 --- a/src/Service/Import/Specification/RegexColumnSpecification.php +++ b/src/Service/Import/Specification/RegexColumnSpecification.php @@ -15,7 +15,11 @@ class RegexColumnSpecification implements ColumnSpecificationInterface public function isSatisfiedBy(string $value): bool { - return preg_match($this->pattern, $value) === 1; + if(!empty($value) || !trim($value) === '') { + return preg_match($this->pattern, $value) === 1; + }else{ + return true; + } } public function getErrorMessage(): string