[Surfraw-commits] [SCM] surfraw - a fast unix command line interface to WWW branch, master, updated. surfraw_2-2-5_1-96-g11ff7ff
Ian Beckwith
ianb at erislabs.net
Tue Mar 2 04:36:04 UTC 2010
The following commit has been merged in the master branch:
commit 11ff7ff648176f29f1656685b513e7ea69bc83d1
Author: Ian Beckwith <ianb at erislabs.net>
Date: Tue Mar 2 04:35:54 2010 +0000
runtests: fix typo in regexp
diff --git a/test/runtests b/test/runtests
index dea6bd9..e5e40ee 100755
--- a/test/runtests
+++ b/test/runtests
@@ -32,7 +32,7 @@ $ua->agent("Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070508 I
my %results;
-my @testnamelengths= map { my $base=(/(?:.*\/)(.*)/)[0]; length($base); } @testfiles;
+my @testnamelengths= map { my $base=(/(?:.*\/)?(.*)/)[0]; length($base); } @testfiles;
my $longestname=(sort { $a <=> $b } @testnamelengths)[$#testnamelengths];
$longestname -= length ".test";
--
surfraw - a fast unix command line interface to WWW
More information about the Surfraw-commits
mailing list