build: properly handle i18n tags with whitespace strip tokens in i18n-scan.pl
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 14 Jan 2011 22:51:21 +0000 (22:51 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 14 Jan 2011 22:51:21 +0000 (22:51 +0000)
build/i18n-scan.pl

index 9edb529..8c01a99 100755 (executable)
@@ -72,7 +72,7 @@ if( open F, "find @ARGV -type f '(' -name '*.htm' -o -name '*.lua' ')' |" )
 
                        $text = $raw;
 
-                       while( $text =~ s/ ^ .*? <% [:_] -? /<%/sgx )
+                       while( $text =~ s/ ^ .*? <% -? [:_] /<%/sgx )
                        {
                                ( my $code, $text ) = extract_tagged($text, '<%', '%>');