1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-03 22:24:49 +03:00

Add multi-line flag to regex that needs it. Backpatch to 8.2. Fix from Andreas Zeugswetter

This commit is contained in:
Andrew Dunstan 2008-04-15 16:28:25 +00:00
parent 74f05fcf07
commit 6faae172df

View File

@ -184,7 +184,7 @@ sub AddDir {
}
# Match rules that pull in source files from different directories
my $replace_re = qr{^([^:\n\$]+\.c)\s*:\s*(?:%\s*: )?\$(\([^\)]+\))\/(.*)\/[^\/]+$};
my $replace_re = qr{^([^:\n\$]+\.c)\s*:\s*(?:%\s*: )?\$(\([^\)]+\))\/(.*)\/[^\/]+$}m;
while ($mf =~ m{$replace_re}m) {
my $match = $1;
my $top = $2;