From: nathan-williams Date: Sun, 21 Jul 2024 23:15:24 +0000 (-0400) Subject: Fix language name regex to allow spaces and a couple other edge cases X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b84e90ebe51f8ebda84ca9e2e079a51215849875;p=thirdparty%2Fgoogle%2Ffonts.git Fix language name regex to allow spaces and a couple other edge cases --- diff --git a/tests/test_data_languages.py b/tests/test_data_languages.py index 4e347dd9b4..62d668f159 100644 --- a/tests/test_data_languages.py +++ b/tests/test_data_languages.py @@ -83,7 +83,7 @@ SKIP_REGION = { "tlh_Latn": "Klingon is an artifical language.", } -LANGUAGE_NAME_REGEX = "^[A-Za-z-]+(, [A-Za-z-]+)?( [(][A-Za-z-]+[)])?$" +LANGUAGE_NAME_REGEX = "^[A-Za-z'- ]+[ʼ]?(, [A-Za-z- ]+)?( [(][A-Za-z- ]+[)])?$" @pytest.mark.parametrize("lang_code", LANGUAGES)