diff options
| author | Juan Pablo Mallarino <mjuanpablo@google.com> | 2024-12-05 08:14:59 -0500 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-12-09 08:32:11 +0100 |
| commit | 08feaae5885f5719b8a7471b19f0d7e720b2137e (patch) | |
| tree | ba878db12e814fe975ee432195e2ab8a24e2b786 /django | |
| parent | d345e5b5f88af64b1c3d95582cdaea4beb773120 (diff) | |
Fixed #35973 -- Improved makemessages locale validation to handle numeric region codes.
Diffstat (limited to 'django')
| -rw-r--r-- | django/core/management/commands/makemessages.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management/commands/makemessages.py b/django/core/management/commands/makemessages.py index 076667d41a..23ad424c5c 100644 --- a/django/core/management/commands/makemessages.py +++ b/django/core/management/commands/makemessages.py @@ -40,7 +40,7 @@ def check_programs(*programs): def is_valid_locale(locale): - return re.match(r"^[a-z]+$", locale) or re.match(r"^[a-z]+_[A-Z].*$", locale) + return re.match(r"^[a-z]+$", locale) or re.match(r"^[a-z]+_[A-Z0-9].*$", locale) @total_ordering |
