From 535d4cf8b914b13ccae6d130ed865235a66b4662 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 5 Feb 2020 14:13:54 +0100 Subject: [PATCH] build: i18n-add-language.sh: more lenient code validation Allow language codes with underscores and capital letters. Signed-off-by: Jo-Philipp Wich --- build/i18n-add-language.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \n" >&2 exit 1 -- 2.25.1