From 88c1439437fcba8d7991d5913620ee7191e6b39a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?agentzh=20=28=E7=AB=A0=E4=BA=A6=E6=98=A5=29?= Date: Mon, 14 May 2012 13:35:04 +0800 Subject: [PATCH] bugfix: ./util/fix-tests could not distingish redis-nginx-module and redis2-nginx-module. --- util/fix-tests | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/fix-tests b/util/fix-tests index 6b93433..1e3b846 100755 --- a/util/fix-tests +++ b/util/fix-tests @@ -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++;