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 <[email protected]>
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
[email protected].