From: Jo-Philipp Wich Date: Fri, 14 Jan 2011 22:51:21 +0000 (+0000) Subject: build: properly handle i18n tags with whitespace strip tokens in i18n-scan.pl X-Git-Tag: 0.11.0~2367 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=939218ae82e4cb36d1780b854f86e7bae4c2b9d6;p=oweals%2Fluci.git build: properly handle i18n tags with whitespace strip tokens in i18n-scan.pl --- diff --git a/build/i18n-scan.pl b/build/i18n-scan.pl index 9edb529ef..8c01a99c4 100755 --- a/build/i18n-scan.pl +++ b/build/i18n-scan.pl @@ -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, '<%', '%>');