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