whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curc...@apache.org
Subject [whimsy] branch master updated: Improved matching thanks to @rubys
Date Sat, 29 Apr 2017 01:36:58 GMT
This is an automated email from the ASF dual-hosted git repository.

curcuru pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  4d53115   Improved matching thanks to @rubys
4d53115 is described below

commit 4d53115aea8ae79d9a93b632cf52b68c4def6d49
Author: Shane Curcuru <asf@shanecurcuru.org>
AuthorDate: Fri Apr 28 21:36:54 2017 -0400

    Improved matching thanks to @rubys
---
 tools/wwwdocs.rb | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tools/wwwdocs.rb b/tools/wwwdocs.rb
index 88c3e0e..4c2bfef 100755
--- a/tools/wwwdocs.rb
+++ b/tools/wwwdocs.rb
@@ -11,9 +11,8 @@ homelinks = {}
 
 Dir["#{startdir}/*.cgi"].each do |f|
   File.open(f).each_line.map(&:chomp).each do |line|
-    if line =~ /^\#\sWvisible\:\s*/i then
-      line =~ /# Wvisible:(.*?) (.*)/; line = [$1.split(','), $2]
-      puts "2 #{line}"
+    if line =~ /^\#\sWvisible\:(.*?)\s+(.*)/i then
+      line = [$1.split(','), $2]
       homelinks[f] = line # TODO make paths relative for easy _a output
     end
   end

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message