Skip to content

Commit

Permalink
reinstate capture group
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Nov 29, 2024
1 parent abf8f2d commit bc76a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Health.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ private static function retrieveSchemaForCategory(string $category, ?string $dat
) {
return LitSchema::EVENTS;
} elseif (
preg_match("/\/data\/(?:nation\/[A-Z]{2}|diocese\/[a-z]{6}_[a-z]{2}|widerregion\/[A-Z][a-z]+)(?:\?locale=[a-zA-Z0-9_]+)?$/", $dataPath, $matches)
preg_match("/\/data\/(?:(nation)\/[A-Z]{2}|(diocese)\/[a-z]{6}_[a-z]{2}|(widerregion)\/[A-Z][a-z]+)(?:\?locale=[a-zA-Z0-9_]+)?$/", $dataPath, $matches)
) {
$schema = LitSchema::DATA;
switch ($matches[1]) {
Expand Down

0 comments on commit bc76a6f

Please sign in to comment.