build: rework checks in i18n-scan.pl
This commit is contained in:
parent
ee09d98cd5
commit
3501cbea52
1 changed files with 5 additions and 1 deletions
|
@ -60,7 +60,7 @@ if( open F, "find @ARGV -type f '(' -name '*.htm' -o -name '*.lua' ')' |" )
|
|||
|
||||
if( $code =~ /^['"]/ )
|
||||
{
|
||||
while( defined $sub && length($sub) > 0 )
|
||||
while( defined $sub )
|
||||
{
|
||||
( $sub, $code ) = extract_delimited($code, q{'"}, q{\s*(?:\.\.\s*)?});
|
||||
|
||||
|
@ -68,6 +68,10 @@ if( open F, "find @ARGV -type f '(' -name '*.htm' -o -name '*.lua' ')' |" )
|
|||
{
|
||||
$res .= substr $sub, 1, length($sub) - 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
undef $sub;
|
||||
}
|
||||
}
|
||||
}
|
||||
elsif( $code =~ /^(\[=*\[)/ )
|
||||
|
|
Loading…
Reference in a new issue