mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
Check for errors in directory names containing digits (e.g. "i18n")
This was SVN commit r1023.
This commit is contained in:
parent
f94ecbd6d7
commit
88ab133c1f
1 changed files with 1 additions and 1 deletions
|
|
@ -169,6 +169,6 @@ sub cpp_files {
|
|||
opendir my $d, $_[0] or die "Error opening directory '$_[0]' ($!)";
|
||||
my @f = readdir $d;
|
||||
my @files = map "$_[0]/$_", grep /\.(?:cpp|h)$/, @f;
|
||||
push @files, cpp_files("$_[0]/$_") for grep { /^[a-z]+$/ and -d "$_[0]/$_" } @f;
|
||||
push @files, cpp_files("$_[0]/$_") for grep { /^[a-z0-9]+$/ and -d "$_[0]/$_" } @f;
|
||||
return @files;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue