build: fix corner case when extracting i18n tokens from templates
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 1 Nov 2009 01:05:28 +0000 (01:05 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 1 Nov 2009 01:05:28 +0000 (01:05 +0000)
build/i18n-scan.pl

index a31952b..3b61bc3 100755 (executable)
@@ -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/ $//;