You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sam Ruby <ru...@apache.org> on 2015/12/04 20:19:54 UTC
[whimsy.git] [14/50] Commit e2b4636: Duplicate email check ("cloud" version of workbench)
Commit e2b4636d55390a30113f8cf15a2313fe777f0dbe:
Duplicate email check ("cloud" version of workbench)
git-svn-id: https://svn.apache.org/repos/infra/infrastructure/trunk/projects/whimsy@819498 90ea9780-b833-de11-8433-001ec94261de
Branch: refs/heads/master
Author: Sam Ruby <ru...@apache.org>
Committer: Sam Ruby <ru...@apache.org>
Pusher: rubys <ru...@apache.org>
------------------------------------------------------------
www/secretary/workbench/file.cgi | +++ -
------------------------------------------------------------
4 changes: 3 additions, 1 deletions.
------------------------------------------------------------
diff --git a/www/secretary/workbench/file.cgi b/www/secretary/workbench/file.cgi
index 0823406..0145ee8 100755
--- a/www/secretary/workbench/file.cgi
+++ b/www/secretary/workbench/file.cgi
@@ -162,9 +162,11 @@ def check
output << [ 'email', "#{$1}: #{$3}" ]
elsif ! $4 or ! $4.index('CLA')
output << [ 'nocla', $2 ]
+ elsif email[$3.downcase]
+ output << [ 'dupemail', "#{$3}: #{name} and #{email[$3.downcase]}" ]
end
- email[$3] = name
+ email[$3.downcase] = name
name.split.each do |word|
next if word.length == 1 and word !~ /\w/