whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Use canonical mail matching
Date Sat, 01 Jun 2019 12:31:54 GMT
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 3377c44  Use canonical mail matching
3377c44 is described below

commit 3377c444ead4609fcc21fd20116979ca54aeb5ce
Author: Sebb <sebb@apache.org>
AuthorDate: Sat Jun 1 13:31:42 2019 +0100

    Use canonical mail matching
---
 www/roster/models/nonpmc.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/roster/models/nonpmc.rb b/www/roster/models/nonpmc.rb
index 266ab0a..81073c9 100644
--- a/www/roster/models/nonpmc.rb
+++ b/www/roster/models/nonpmc.rb
@@ -124,7 +124,7 @@ class NonPMC
       }
       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


Mime
View raw message