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 843c0691 Allow for multiple emails sep. by comma or space
843c0691 is described below
commit 843c069134984a0f8b8965d87d4b5a4816a7e882
Author: Sebb <[email protected]>
AuthorDate: Sat May 20 13:21:08 2023 +0100
Allow for multiple emails sep. by comma or space
---
lib/whimsy/asf/icla.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/whimsy/asf/icla.rb b/lib/whimsy/asf/icla.rb
index 48f88db0..4115646d 100644
--- a/lib/whimsy/asf/icla.rb
+++ b/lib/whimsy/asf/icla.rb
@@ -96,7 +96,8 @@ module ASF
refresh
unless @@email_index
@@email_index = {}
- each {|icla| @@email_index[icla.email.downcase] = icla}
+ # Allow for multiple emails separated by comma or space
+ each {|icla| icla.email.downcase.split(/[, ]/).each {|m|
@@email_index[m] = icla}}
end
@@email_index[value.downcase]