bugfix: ./util/fix-tests could not distingish redis-nginx-module and redis2-nginx-module.

This commit is contained in:
agentzh (章亦春) 2012-05-14 13:35:04 +08:00
parent e8990b7d03
commit 88c1439437
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ for my $t_file (@t_files) {
my $changed;
while (<$in>) {
for my $dir (@dirs) {
(my $pat = $dir) =~ s/\d.*//;
(my $pat = $dir) =~ s/-(\d+\..*)/-/;
my $orig = $_;
if (s{\.\./$pat\S+}{../$dir}g && $orig ne $_) {
$changed++;