mirror of
https://github.com/openwrt/luci.git
synced 2026-02-04 12:06:01 +08:00
build: properly handle i18n tags with whitespace strip tokens in i18n-scan.pl
This commit is contained in:
@@ -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, '<%', '%>');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user