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 67cf2a4  Use canonical matching for list moderators
67cf2a4 is described below

commit 67cf2a45c6e19e28d0e0a471fa14e6264bc1f49f
Author: Sebb <[email protected]>
AuthorDate: Thu Mar 7 02:39:12 2019 +0000

    Use canonical matching for list moderators
---
 www/roster/models/committee.rb | 2 +-
 www/roster/models/ppmc.rb      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/roster/models/committee.rb b/www/roster/models/committee.rb
index 55322ed..a9ef2c1 100644
--- a/www/roster/models/committee.rb
+++ b/www/roster/models/committee.rb
@@ -118,7 +118,7 @@ class Committee
       }
       nonASFmails.each {|k,v|
         @people.each do |person|
-          if person[:mail].any? {|mail| mail.downcase == k.downcase}
+          if person[:mail].any? {|mail| ASF::Mail.to_canonical(mail.downcase) 
== ASF::Mail.to_canonical(k.downcase)}
             nonASFmails[k] = person[:id]
           end
         end
diff --git a/www/roster/models/ppmc.rb b/www/roster/models/ppmc.rb
index 1a26a8f..d8ea242 100644
--- a/www/roster/models/ppmc.rb
+++ b/www/roster/models/ppmc.rb
@@ -123,7 +123,7 @@ class PPMC
       }
       nonASFmails.each {|k,v|
         @people.each do |person|
-          if person[:mail].any? {|mail| mail.downcase == k.downcase}
+          if person[:mail].any? {|mail| ASF::Mail.to_canonical(mail.downcase) 
== ASF::Mail.to_canonical(k.downcase)}
             nonASFmails[k] = person[:id]
           end
         end

Reply via email to