From 23807affbfc409397b70c0890401ab13d258ba39 Mon Sep 17 00:00:00 2001 From: "John R. D'Orazio" Date: Fri, 29 Nov 2024 17:06:23 +0100 Subject: [PATCH] try escaping dashes? --- src/Health.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(