Skip to content

Commit

Permalink
try escaping dashes?
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Nov 29, 2024
1 parent e16f109 commit 23807af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Health.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 23807af

Please sign in to comment.