projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
build/i18n-scan.pl: avoid a possible endless loop
[project/luci.git]
/
build
/
i18n-scan.pl
diff --git
a/build/i18n-scan.pl
b/build/i18n-scan.pl
index
8807384
..
3f73271
100755
(executable)
--- 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;