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 2020/11/23 22:29:44 UTC
[whimsy] branch master updated: Unnecessary character class
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 34ccb32 Unnecessary character class
34ccb32 is described below
commit 34ccb3239386a27c9a8316741d2d392f00fcd8c5
Author: Sebb <se...@apache.org>
AuthorDate: Mon Nov 23 22:29:35 2020 +0000
Unnecessary character class
This fixes #107
---
lib/whimsy/asf/agenda/discussion.rb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/whimsy/asf/agenda/discussion.rb b/lib/whimsy/asf/agenda/discussion.rb
index ab9f7a6..bdbedf5 100644
--- a/lib/whimsy/asf/agenda/discussion.rb
+++ b/lib/whimsy/asf/agenda/discussion.rb
@@ -4,15 +4,15 @@
class ASF::Board::Agenda
parse do
- discussion = @file.split(/^ \d. Discussion Items\n/,2).last.
- split(/^ \d. .*Action Items/,2).first
+ discussion = @file.split(/^ \d. Discussion Items\n/, 2).last.
+ split(/^ \d. .*Action Items/, 2).first
if discussion !~ /\A\s{3,5}[0-9A-Z]\.\s/
# One (possibly empty) item for all Discussion Items
pattern = /
- ^(?<attach>\s[8]\.)
+ ^(?<attach>\s8\.)
\s(?<title>.*?)\n
(?<text>.*?)
(?=\n[\s1]\d\.|\n===)