whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: extract title from parsed agenda
Date Sun, 10 Apr 2016 22:00:20 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  ef58ca1   extract title from parsed agenda
ef58ca1 is described below

commit ef58ca17bb2015d9336a99cea44d07a81b699788
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Sun Apr 10 17:59:44 2016 -0400

    extract title from parsed agenda
---
 www/board/agenda/views/actions/post.json.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/board/agenda/views/actions/post.json.rb b/www/board/agenda/views/actions/post.json.rb
index ddb4761..9008679 100644
--- a/www/board/agenda/views/actions/post.json.rb
+++ b/www/board/agenda/views/actions/post.json.rb
@@ -49,7 +49,8 @@ Agenda.update(@agenda, @message) do |agenda|
       pattern = /(\n\n    #{@attach[-1]}\. #{item['title']} \[.*?\]).*?\n\n(    [B-Z]\.|
5\.)/m
       @report.gsub! /^(.)/, '       \1'
     elsif @attach =~ /^7\w/
-      pattern = /(^\s+#{@attach[-1]}\.\s+#{@fulltitle})\n.*?\n( {1,6}\w\.)/m
+      title = item['fulltitle'] || item['title']
+      pattern = /(^\s+#{@attach[-1]}\.\s+#{title})\n.*?\n( {1,6}\w\.)/m
       @report.gsub! /^(.)/, '       \1'
     else
       pattern = /(---\nAttachment #{@attach}:.*?\[.*?\])\n.*?\n(-{40})/m

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message