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 21:53:49 UTC

[whimsy] branch master updated: van der / van / de

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