|
|
@@ -502,7 +502,7 @@ class OrganizationFactory
|
|
|
|
|
|
// Si réseau CMF, on vérifie que le matricule est valide
|
|
|
if ($network->getId() === NetworkEnum::CMF->value) {
|
|
|
- if (!preg_match("/FR\d{12}/", $organizationCreationRequest->getIdentifier())) {
|
|
|
+ if (!preg_match("/FR\d{3}\w\d{8}/", $organizationCreationRequest->getIdentifier())) {
|
|
|
throw new \RuntimeException('CMF identifier is missing or invalid.');
|
|
|
}
|
|
|
}
|