From: Jo-Philipp Wich Date: Sun, 1 Nov 2009 01:05:28 +0000 (+0000) Subject: build: fix corner case when extracting i18n tokens from templates X-Git-Tag: 0.10.0~1019 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=e3ac0fd78d7fe7660954348675094d02d5f42aa0 build: fix corner case when extracting i18n tokens from templates --- diff --git a/build/i18n-scan.pl b/build/i18n-scan.pl index a31952bbb..3b61bc384 100755 --- a/build/i18n-scan.pl +++ b/build/i18n-scan.pl @@ -24,6 +24,7 @@ sub dec_lua_str sub dec_tpl_str { my $s = shift; + $s =~ s/-$//; $s =~ s/[\s\n]+/ /g; $s =~ s/^ //; $s =~ s/ $//;