Skip to content

Commit

Permalink
Fix unicode character class in language name regex
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-williams committed Jul 22, 2024
1 parent 91119da commit 1303c70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_data_languages.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"tlh_Latn": "Klingon is an artifical language.",
}

LANGUAGE_NAME_REGEX = "^[-'’ʼ\p{L} ]+(, [-'’ʼ\p{L}/ ]+)?( [(][-'’ʼ\p{L} ]+[)])?$"
LANGUAGE_NAME_REGEX = r"^[-'’ʼ\p{L} ]+(, [-'’ʼ\p{L}/ ]+)?( [(][-'’ʼ\p{L} ]+[)])?$"
# Some scripts have abbreviated names for reference in language names that are
# sufficient in context. If an alternate is listed here, it should be used
# universally and consistently across all language names.
Expand Down

0 comments on commit 1303c70

Please sign in to comment.