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 2018/05/16 16:47:00 UTC

[whimsy] 02/02: take advantage of enhanced find

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

commit 4ac100cc09e73ef129a155918d3aa14f1de307ef
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Wed May 16 12:46:38 2018 -0400

    take advantage of enhanced find
---
 www/board/agenda/views/models/minutes.js.rb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/www/board/agenda/views/models/minutes.js.rb b/www/board/agenda/views/models/minutes.js.rb
index 4b8bbe1..5b4276b 100644
--- a/www/board/agenda/views/models/minutes.js.rb
+++ b/www/board/agenda/views/models/minutes.js.rb
@@ -20,8 +20,7 @@ class Minutes
       pattern = RegExp.new('^(?:@|AI\s+)(\w+):?\s+([\s\S]*?)(\n\n|$)', 'g')
       match = pattern.exec(minutes)
       while match
-        actions << {owner: match[1], text: match[2], 
-          item: Agenda.find(title.gsub(/\W+/, '-'))}
+        actions << {owner: match[1], text: match[2], item: Agenda.find(title)}
         match = pattern.exec(minutes)
       end
     end

-- 
To stop receiving notification emails like this one, please contact
rubys@apache.org.