Skip to content

Commit

Permalink
Update language name character class to allow accent marks
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-williams committed Jul 22, 2024
1 parent 17b4bdd commit d7416e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Lib/gflanguages/data/languages/art_Latn.textproto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id: "art_Latn"
language: "art"
script: "Latn"
name: "Artificial languages, Latin, World"
name: "Artificial languages, World (Latin)"
sample_text {
masthead_full: "JjAa"
masthead_partial: "Nn"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data_languages.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
}

# "ʼ" allowed as last character in language name for Metaʼ
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)
Expand Down

0 comments on commit d7416e2

Please sign in to comment.