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: Middle initial
Date Mon, 30 Jul 2018 22:07:09 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 5e998b6  Middle initial
5e998b6 is described below

commit 5e998b60340514548dd6069f7da1a551df65da89
Author: Sebb <sebb@apache.org>
AuthorDate: Mon Jul 30 23:07:07 2018 +0100

    Middle initial
---
 www/secretary/ldap-names.cgi | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/www/secretary/ldap-names.cgi b/www/secretary/ldap-names.cgi
index cff5a94..2824f38 100755
--- a/www/secretary/ldap-names.cgi
+++ b/www/secretary/ldap-names.cgi
@@ -143,6 +143,9 @@ _html do
         if names[1] == 'van' or names[1] == 'de'
           new_given = names.shift
           new_sn = names.join(' ')
+        elsif names[1] =~ /^[A-Z]\.$/ # James A. Taylor
+          new_given = names.shift
+          new_sn = names.pop
         end
       end
       icla = ASF::ICLA.find_by_id(p.uid)


Mime
View raw message