summaryrefslogtreecommitdiffhomepage
path: root/build
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-11-01 01:05:28 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-11-01 01:05:28 +0000
commite3ac0fd78d7fe7660954348675094d02d5f42aa0 (patch)
tree123a468c11f1de6200c1625dd269775cba1ab4c2 /build
parent4ad686d73208a760ed8d2beaad03198e455d7623 (diff)
build: fix corner case when extracting i18n tokens from templates
Diffstat (limited to 'build')
-rwxr-xr-xbuild/i18n-scan.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/build/i18n-scan.pl b/build/i18n-scan.pl
index a31952bbbc..3b61bc3843 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/ $//;