diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-02-05 14:13:54 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-02-05 14:16:12 +0100 |
commit | 535d4cf8b914b13ccae6d130ed865235a66b4662 (patch) | |
tree | 2f49816ca7c90664ac8f1dcd665166c1de8245c2 | |
parent | 0b513de0b0be3d9f0bd1f5e2b65ed3866bf5ec1e (diff) |
build: i18n-add-language.sh: more lenient code validation
Allow language codes with underscores and capital letters.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rwxr-xr-x | build/i18n-add-language.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/i18n-add-language.sh b/build/i18n-add-language.sh index 24203c233..b4a852efb 100755 --- a/build/i18n-add-language.sh +++ b/build/i18n-add-language.sh @@ -3,7 +3,7 @@ LANG=$1 case "$LANG" in - [a-z][a-z]|[a-z][a-z]-[a-z][a-z]) : ;; + [a-z][a-z]|[a-z][a-z][_-][A-Za-z][A-Za-z]*) : ;; *) echo "Usage: $0 <ISO_CODE>\n" >&2 exit 1 |