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: fuzzy match on nomination
Date Wed, 08 Mar 2017 21:21:19 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  338f13e   fuzzy match on nomination
338f13e is described below

commit 338f13e835afe77e8cf2b8d207c91e521880ec21
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Wed Mar 8 16:21:02 2017 -0500

    fuzzy match on nomination
---
 www/members/nominations.cgi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/members/nominations.cgi b/www/members/nominations.cgi
index 540b721..43f7db1 100755
--- a/www/members/nominations.cgi
+++ b/www/members/nominations.cgi
@@ -23,10 +23,10 @@ archive.each do |email|
   next unless message[/^Date: .*/].to_s.include? year
   subject = message[/^Subject: .*/]
   next unless subject.upcase.include? "MEMBER"
-  next unless subject.upcase.include? "NOMINATION"
+  next unless subject.upcase =~ /NOMI[NM]ATION/
   mail = Mail.new(message)
   next if mail.subject.downcase == 'member nomination process'
-  emails << mail if mail.subject =~ /^\[?MEMBER(SHIP)? NOMINATION\]?/i
+  emails << mail if mail.subject =~ /^\[?MEMBER(SHIP)? NOMI[MN]ATION\]?/i
 end
 
 # parse nominations for names and ids

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

Mime
View raw message