Skip to content

Commit

Permalink
all i18n paths will have -i18n at end of string
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Nov 20, 2024
1 parent 510cc60 commit d333487
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 @@ -317,7 +317,7 @@ private static function retrieveSchemaForCategory(string $category, ?string $dat
return Health::DATA_PATH_TO_SCHEMA[ $dataPath ];
break;
case 'sourceDataCheck':
if (preg_match("/-i18n(?:-[A-Z][a-z]+)?$/", $dataPath)) {
if (preg_match("/-i18n$/", $dataPath)) {
return LitSchema::I18N;
}
if (preg_match("/^memorials-from-decrees$/", $dataPath)) {
Expand Down

0 comments on commit d333487

Please sign in to comment.