Browse Source

tighten include regexp, and fix to allow dashes in package names

tags/2.59
Joey Hess 15 years ago
parent
commit
bf3ed5c690
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      doincludes.pl

+ 1
- 1
doincludes.pl View File

@@ -44,7 +44,7 @@ sub processfile {
push @lines, $_ unless $skipping == 1;

if (/^#\s*include\s+(\w+)/) {
if (/^#\s*include\s+([-a-z0-9]+)\s*$/) {
my $pkg=$1;
if ($skipping) {
die "$file: nested includes near $_\n";


Loading…
Cancel
Save