You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2022/05/21 15:35:16 UTC

[whimsy] branch master updated: Trailing # has been dropped from header; fix RE

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 fbe0c67f Trailing # has been dropped from header; fix RE
fbe0c67f is described below

commit fbe0c67f95648c4d172db223faf00de36376997e
Author: Sebb <se...@apache.org>
AuthorDate: Sat May 21 16:34:53 2022 +0100

    Trailing # has been dropped from header; fix RE
---
 www/board/agenda/views/actions/publish.json.rb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/www/board/agenda/views/actions/publish.json.rb b/www/board/agenda/views/actions/publish.json.rb
index 93b2da00..469fe7b0 100755
--- a/www/board/agenda/views/actions/publish.json.rb
+++ b/www/board/agenda/views/actions/publish.json.rb
@@ -62,7 +62,7 @@ ASF::SVN.update MINUTES, @message, env, _ do |tmpdir|
   end
 
   year_minutes = File.join(yeardir, minutes)
-  if not File.exist? year_minutes
+  unless File.exist? year_minutes
     _.system('cp', File.join(BOARD_PRIVATE, minutes), yeardir)
     ASF::SVN.svn_('add', year_minutes, _)
   end
@@ -79,7 +79,7 @@ end
 # ...
 # [Pre-organization meetings](calendar-1999-2004.html#preorg)
 #
-# # 2020 Board meeting minutes # {#2020}
+# # 2020 Board meeting minutes  {#2020}
 #
 # - [17 June 2020](../records/minutes/2020/board_minutes_2020_06_17.txt)
 #     * ...
@@ -92,7 +92,7 @@ end
 ASF::SVN.update ASF::SVN.svnpath!('site-board', 'calendar.md' ), @message, env, _ do |_tmpdir, calendar|
   # add year header
   unless calendar.include? "# #{year} Board meeting minutes"
-    calendar[/^()#.*Board meeting minutes #/,1] =
+    calendar[/^()#.*Board meeting minutes /, 1] =
       "# #{year} Board meeting minutes {##{year}}\n\n"
   end
 
@@ -100,7 +100,7 @@ ASF::SVN.update ASF::SVN.svnpath!('site-board', 'calendar.md' ), @message, env,
   if calendar.include? "\n- [#{fdate}]"
     calendar.sub! /\n-\s+\[#{fdate}\].*?(\n[-#])/m, "\n" + @summary + '\1'
   else
-    calendar[/# #{year} Board meeting minutes #.*\n()/,1] = "\n" + @summary
+    calendar[/# #{year} Board meeting minutes .*\n()/, 1] = "\n" + @summary
   end
 
   # remove from calendar