You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2019/04/01 00:58:04 UTC
[whimsy] branch master updated: try harder to match podling names
This is an automated email from the ASF dual-hosted git repository.
rubys 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 de8427c try harder to match podling names
de8427c is described below
commit de8427c4b88003f54a01111c32084776b60dbb5e
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sun Mar 31 20:57:47 2019 -0400
try harder to match podling names
---
lib/whimsy/asf/podling.rb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/whimsy/asf/podling.rb b/lib/whimsy/asf/podling.rb
index 7322a20..8f6d353 100644
--- a/lib/whimsy/asf/podling.rb
+++ b/lib/whimsy/asf/podling.rb
@@ -200,7 +200,10 @@ module ASF
# find a podling by name
def self.find(name)
- list.find { |podling| podling.name == name }
+ name = name.downcase
+ list.find do |podling|
+ podling.name == name || podling.display_name.downcase == name
+ end
end
# below is for backwards compatibility