summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xbuild/i18n-scan.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/i18n-scan.pl b/build/i18n-scan.pl
index 8807384027..3f73271096 100755
--- a/build/i18n-scan.pl
+++ b/build/i18n-scan.pl
@@ -64,6 +64,10 @@ if( open F, "find @ARGV -type f '(' -name '*.htm' -o -name '*.lua' ')' |" )
{
( $sub, $code ) = extract_delimited($code, q{'"}, q{\s*(?:\.\.\s*)?});
+ if( length($sub) < 1 ) {
+ undef $sub;
+ }
+
if( defined $sub )
{
$res .= substr $sub, 1, length($sub) - 2;