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: Don't want trailing '-'
Date Tue, 26 May 2020 19:51:42 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 5996eae  Don't want trailing '-'
5996eae is described below

commit 5996eaed4096b5f93b5ce8d07459b40d6007ae42
Author: Sebb <sebb@apache.org>
AuthorDate: Tue May 26 20:51:30 2020 +0100

    Don't want trailing '-'
---
 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 acf787f..71465f5 100644
--- a/lib/whimsy/asf/person.rb
+++ b/lib/whimsy/asf/person.rb
@@ -163,7 +163,7 @@ module ASF
     def self.stem_DRAFT(name)
       # need to split before 
       name = name.gsub(',', ' ').split(/ +/).map{|n|n.gsub(%r{^(Dr|Jr|Sr|[A-Z])\.$},'\1')}
-      asciize(name.join('-')).downcase
+      asciize(name.join('-')).downcase.chomp('-')
     end
 
     # return public name in a sortable order (last name first)


Mime
View raw message