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/31 12:46:57 UTC
[whimsy] branch master updated: += 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 7eaa568 += van de
7eaa568 is described below
commit 7eaa568c92d62318e07fb9402bff615783fb7586
Author: Sebb <se...@apache.org>
AuthorDate: Tue Jul 31 13:46:56 2018 +0100
+= van de
---
lib/whimsy/asf/person.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/whimsy/asf/person.rb b/lib/whimsy/asf/person.rb
index b903ae6..88e3ac5 100644
--- a/lib/whimsy/asf/person.rb
+++ b/lib/whimsy/asf/person.rb
@@ -91,7 +91,7 @@ module ASF
result['generationQualifier'] = words.pop if words.last =~ SUFFIXES
result['givenName'] = words.first # TODO does gn allow multiple words?
# extract surnames like van Gogh etc
- if words.size >= 4 and words[1..2] == %w(de la) or words[1..2] == %w(van der)
+ if words.size >= 4 and words[1..2] == %w(de la) or words[1..2] == %w(van der) or words[1..2] == %w(van de)
result['sn'] = words[-3..-1].join(' ')
elsif words.size >= 3 and %w(van Van de De del Del den le Le).include? words[-2]
result['sn'] = words[-2..-1].join(' ')