You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2018/07/30 22:07:09 UTC

[whimsy] branch master updated: Middle initial

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 <se...@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)