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 09cccca  handle a new type of comment style in roll call
09cccca is described below

commit 09cccca5464c810e4a7b03b6599eda149e521211
Author: Sam Ruby <[email protected]>
AuthorDate: Sat May 12 11:14:22 2018 -0400

    handle a new type of comment style in roll call
---
 lib/whimsy/asf/agenda/front.rb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/whimsy/asf/agenda/front.rb b/lib/whimsy/asf/agenda/front.rb
index 8f15837..4db7b7e 100644
--- a/lib/whimsy/asf/agenda/front.rb
+++ b/lib/whimsy/asf/agenda/front.rb
@@ -21,9 +21,10 @@ class ASF::Board::Agenda
         officers = attr['text'].scan(/^ +Executive[ \S]*?:\n\n.*?\n\n/m).join
 
         # attempt to identify the people mentioned in the Roll Call
-        people = attr['text'].scan(/ {8}(\w.*)/).flatten.each do |name|
+        people = attr['text'].scan(/^ {8}(\w.*)/).flatten.each do |name|
           next if name == 'none'
-          name.gsub! /\s*[\[(].*/, '' # Remove (extraneous [comments in past 
board minutes
+          # Remove (extraneous [comments in past board minutes
+          name.gsub! /(\s*[\[(]|\s+-).*/, '' 
           name.strip!
 
           role = :guest

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to