You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2018/05/09 01:05:04 UTC
[whimsy] branch master updated: be more forgiving
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 46b681b be more forgiving
46b681b is described below
commit 46b681bdfbfd6e9c5600dbd9bb26bdd2422d0e25
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Tue May 8 21:04:51 2018 -0400
be more forgiving
---
www/board/agenda/views/actions/posted-reports.json.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/www/board/agenda/views/actions/posted-reports.json.rb b/www/board/agenda/views/actions/posted-reports.json.rb
index 141733c..849deca 100755
--- a/www/board/agenda/views/actions/posted-reports.json.rb
+++ b/www/board/agenda/views/actions/posted-reports.json.rb
@@ -31,9 +31,9 @@ archive.each do |email|
next if email.end_with? '/index'
message = IO.read(email, mode: 'rb')
subject = message[/^Subject: .*/]
- next unless subject and subject.upcase.include? "[REPORT]"
+ next unless subject and subject =~ /\bREPORT\b/i
mail = Mail.new(message.encode(message.encoding, crlf_newline: true))
- reports << mail if subject and mail.subject.upcase.start_with? "[REPORT]"
+ reports << mail if subject and mail.subject =~ /\A[\[({]REPORT[\])}]/i
end
# Get a list of missing board reports
--
To stop receiving notification emails like this one, please contact
rubys@apache.org.