]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
Fix language name regex to allow spaces and a couple other edge cases
authornathan-williams <nathan.le.williams@gmail.com>
Sun, 21 Jul 2024 23:15:24 +0000 (19:15 -0400)
committernathan-williams <nathan.le.williams@gmail.com>
Sun, 21 Jul 2024 23:15:24 +0000 (19:15 -0400)
tests/test_data_languages.py

index 4e347dd9b47a6e9106bca8594e69d37c3f8d6fb0..62d668f15948bebe4addd00db787975d2765d2d4 100644 (file)
@@ -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)