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 2017/09/07 13:49:10 UTC
[whimsy] branch master updated: look for name in parens too for
podlingnamesearch
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 2e2fab3 look for name in parens too for podlingnamesearch
2e2fab3 is described below
commit 2e2fab3aa2164c109e77a10defa2bbe5cb74434d
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Thu Sep 7 09:48:43 2017 -0400
look for name in parens too for podlingnamesearch
---
www/board/agenda/views/elements/pns.rb | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/www/board/agenda/views/elements/pns.rb b/www/board/agenda/views/elements/pns.rb
index ae644ea..8ef23a3 100644
--- a/www/board/agenda/views/elements/pns.rb
+++ b/www/board/agenda/views/elements/pns.rb
@@ -40,10 +40,16 @@ class PodlingNameSearch < React
def check(props)
@results = nil
name = props.item.title[/Establish (.*)/, 1]
+
+ # if full title contains a name in parenthesis, check for that name too
+ altname = props.item.fulltitle[/\((.*?)\)/, 1]
+
if name and Server.podlingnamesearch
for podling in Server.podlingnamesearch
if name == podling
@results = Server.podlingnamesearch[name]
+ elsif altname == podling
+ @results = Server.podlingnamesearch[altname]
end
end
end
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].