From d33348787a420ad92f8186b53d690f52435fd55b Mon Sep 17 00:00:00 2001 From: "John R. D'Orazio" Date: Wed, 20 Nov 2024 20:07:08 +0100 Subject: [PATCH] all i18n paths will have `-i18n` at end of string --- src/Health.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Health.php b/src/Health.php index af08c45d..e4c64d4d 100644 --- a/src/Health.php +++ b/src/Health.php @@ -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)) {