Improve hook matching.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96984 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ben Laurie
2002-09-26 11:58:25 +00:00
parent b31bec2fe9
commit ae2c65467d

View File

@ -61,7 +61,7 @@ sub scanFile {
$::Hooks{$name}->{declared}=$file;
$::Hooks{$name}->{ret}=$ret;
$::Hooks{$name}->{args}=$args;
} elsif(/AP_DECLARE_HOOK\(([^,]+),([^,]+)/) {
} elsif(/AP_DECLARE_HOOK\((\s*[^,\s]+)\s*,\s*([^,\s]+)/) {
# really we should swallow subsequent lines to get the arguments...
my $name=$2;
my $ret=$1;