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: Pick up first line
Date Thu, 11 Feb 2021 23:54:32 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 dae26c8  Pick up first line
dae26c8 is described below

commit dae26c8de3e4d6661402881a1f619f5bf668d08c
Author: Sebb <sebb@apache.org>
AuthorDate: Thu Feb 11 23:54:13 2021 +0000

    Pick up first line
    
    <NOMINATED PERSON'S APACHE ID> <PUBLIC NAME>
---
 lib/whimsy/asf/nominees.rb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/whimsy/asf/nominees.rb b/lib/whimsy/asf/nominees.rb
index 10b4518..4bfbbe0 100644
--- a/lib/whimsy/asf/nominees.rb
+++ b/lib/whimsy/asf/nominees.rb
@@ -20,7 +20,11 @@ module ASF
 
       nominees = {}
       nominations.each do |nomination|
-        id = nomination[/^\s?\w+.*<(\S+)@apache.org>/, 1]
+
+        # leading space is swallowed by the split; match against
+        # <NOMINATED PERSON'S APACHE ID> <PUBLIC NAME>
+        id = nomination[/\A(\S+)/, 1]
+        id ||= nomination[/^\s?\w+.*<(\S+)@apache.org>/, 1]
         id ||= nomination[/^\s?\w+.*\((\S+)@apache.org\)/, 1]
         id ||= nomination[/^\s?\w+.*\(([a-z]+)\)/, 1]
 


Mime
View raw message