whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: only split discussion items if they start out with an " A. "
Date Fri, 06 Apr 2018 20:16:20 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys 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 dda152a  only split discussion items if they start out with an " A. "
dda152a is described below

commit dda152ad885bf44c71825597e0d0d4e381e9e44c
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Fri Apr 6 16:15:52 2018 -0400

    only split discussion items if they start out with an " A. "
---
 lib/whimsy/asf/agenda/discussion.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/whimsy/asf/agenda/discussion.rb b/lib/whimsy/asf/agenda/discussion.rb
index ab657d4..6c8fb44 100644
--- a/lib/whimsy/asf/agenda/discussion.rb
+++ b/lib/whimsy/asf/agenda/discussion.rb
@@ -4,12 +4,12 @@
 
 class ASF::Board::Agenda
   parse do
-    discussion = @file.split(/^ \d. Discussion Items/,2).last.
+    discussion = @file.split(/^ \d. Discussion Items\n/,2).last.
       split(/^ \d. .*Action Items/,2).first
     
-    if discussion.strip.empty?
+    if discussion !~ /\A\s{3,5}[A-Z]\.\s/
 
-      # One (empty) item for Discussion Items
+      # One (possibly empty) item for all Discussion Items
 
       pattern = /
         ^(?<attach>\s[8]\.)

-- 
To stop receiving notification emails like this one, please contact
rubys@apache.org.

Mime
View raw message