You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2021/02/22 13:12:39 UTC
[whimsy] branch master updated: Allow for another typo
This is an automated email from the ASF dual-hosted git repository.
sebb 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 17b3666 Allow for another typo
17b3666 is described below
commit 17b36664eac51ce399ee931cd9f8881ae4677581
Author: Sebb <se...@apache.org>
AuthorDate: Mon Feb 22 13:12:28 2021 +0000
Allow for another typo
---
www/members/nominations.cgi | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/www/members/nominations.cgi b/www/members/nominations.cgi
index 94d1a13..0b9131c 100755
--- a/www/members/nominations.cgi
+++ b/www/members/nominations.cgi
@@ -31,11 +31,12 @@ def setup_data
next unless message[/^Date: .*/].to_s.include? year
subject = message[/^Subject: .*/]
next if not subject # HACK: allow script to continue if bogus email
- next unless subject.upcase.include? "MEMBER"
- next unless subject.upcase =~ /NOMI[NM]ATION/
+ subjectUC = subject.upcase
+ next unless subjectUC =~ /ME[MN]BER/
+ next unless subjectUC =~ /NOMI[NM]ATION/
mail = Mail.new(message.encode(message.encoding, crlf_newline: true))
next if mail.subject.downcase == 'member nomination process'
- emails << mail if mail.subject =~ /^\[?MEMBER(SHIP)? NOMI[MN]ATION\]?/i
+ emails << mail if mail.subject =~ /^\[?ME[NM]BER(SHIP)? NOMI[MN]ATION\]?/i
end
# parse nominations for names and ids