diff --git a/src/Health.php b/src/Health.php index 0a96984f..eac468a5 100644 --- a/src/Health.php +++ b/src/Health.php @@ -364,7 +364,7 @@ private function executeValidation(object $validation, ConnectionInterface $to) if (property_exists($validation, 'sourceFolder')) { $dataPath = rtrim($validation->sourceFolder, '/'); $matches = null; - if (preg_match("/^(wider-region|national-calendar|diocesan-calendar)-([A-Z][a-z]+)-i18n$/i", $validation->validate, $matches)) { + if (preg_match("/^(wider\-region|national\-calendar|diocesan\-calendar)\-([A-Z][_a-z]+)\-i18n$/", $validation->validate, $matches)) { switch ($matches[1]) { case 'wider-region': $dataPath = strtr( @@ -393,7 +393,7 @@ private function executeValidation(object $validation, ConnectionInterface $to) if (property_exists($validation, 'sourceFile')) { $dataPath = $validation->sourceFile; $matches = null; - if (preg_match("/^(wider-region|national-calendar|diocesan-calendar)-([A-Z][a-z]+)$/i", $validation->validate, $matches)) { + if (preg_match("/^(wider-region|national-calendar|diocesan-calendar)-([A-Z][a-z]+)$/", $validation->validate, $matches)) { switch ($matches[1]) { case 'wider-region': $dataPath = strtr(