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: van der / van / de
Date Mon, 30 Jul 2018 21:53:49 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 acac383  van der / van / de
acac383 is described below

commit acac38371a47520c41f4e75978606bb9b9268162
Author: Sebb <sebb@apache.org>
AuthorDate: Mon Jul 30 22:53:48 2018 +0100

    van der / van / de
---
 www/secretary/ldap-names.cgi | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/www/secretary/ldap-names.cgi b/www/secretary/ldap-names.cgi
index 218b786..cff5a94 100755
--- a/www/secretary/ldap-names.cgi
+++ b/www/secretary/ldap-names.cgi
@@ -135,7 +135,12 @@ _html do
         new_given = names[0]
         new_sn = names[1]
       elsif names.size == 4
-        if names[1..2] == %w(de la)
+        if names[1..2] == %w(de la) or names[1..2] == %w(van der)
+          new_given = names.shift
+          new_sn = names.join(' ')
+        end
+      elsif names.size == 3
+        if names[1] == 'van' or names[1] == 'de'
           new_given = names.shift
           new_sn = names.join(' ')
         end


Mime
View raw message