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 c002d4d4 Don't match lines that cannot be section headings
c002d4d4 is described below
commit c002d4d4ddf57c59e1d6c1f256eb89997eab60a5
Author: Sebb <[email protected]>
AuthorDate: Wed Sep 24 22:07:24 2025 +0100
Don't match lines that cannot be section headings
---
lib/whimsy/asf/agenda/back.rb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/whimsy/asf/agenda/back.rb b/lib/whimsy/asf/agenda/back.rb
index f5b974db..7bce6e73 100644
--- a/lib/whimsy/asf/agenda/back.rb
+++ b/lib/whimsy/asf/agenda/back.rb
@@ -4,12 +4,14 @@
# * New Business
# * Announcements
# * Adjournment
+# Longest title above is 31 chars; allow for 35 below.
+# This is to avoid accidentally matching a line that happens to start with
digits.
class ASF::Board::Agenda
parse do
pattern = /
^(?<attach>(?:\s9|1\d)\.)
- \s(?<title>.*?)\n
+ \s(?<title>.{,35}?)\n
(?<text>.*?)
(?=\n[\s1]\d\.|\n===)
/mx