summaryrefslogtreecommitdiffhomepage
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-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 880738402..3f7327109 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;