You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by cu...@apache.org on 2017/04/29 01:36:58 UTC

[whimsy] branch master updated: Improved matching thanks to @rubys

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 <as...@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" <co...@whimsical.apache.org>'].