[Surfraw-commits] [SCM] surfraw - a fast unix command line interface to WWW branch, master, updated. surfraw_2-2-5_1-95-g7c30b08

Ian Beckwith ianb at erislabs.net
Tue Mar 2 03:50:30 UTC 2010


The following commit has been merged in the master branch:
commit 7c30b085e067953371ef77da8d103b0b853f47f7
Author: Ian Beckwith <ianb at erislabs.net>
Date:   Tue Mar 2 03:30:22 2010 +0000

    runtests: fix formatting

diff --git a/test/runtests b/test/runtests
index 51bd5c6..dea6bd9 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 { length($_); } @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