This is an automated email from the ASF dual-hosted git repository.

curcuru 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 c34c207c Guard against missed colons in manual entries
c34c207c is described below

commit c34c207c49a4ba040c1da3f37c0e48d7e016be00
Author: Shane Curcuru <[email protected]>
AuthorDate: Mon Feb 3 13:13:08 2025 -0500

    Guard against missed colons in manual entries
    
    Partial fix of WHIMSY-425
---
 lib/whimsy/asf/member-files.rb | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/lib/whimsy/asf/member-files.rb b/lib/whimsy/asf/member-files.rb
index 4f542ef6..7971debb 100644
--- a/lib/whimsy/asf/member-files.rb
+++ b/lib/whimsy/asf/member-files.rb
@@ -24,19 +24,19 @@ module ASF
     # Same as MEMBER_REGEX, but no <uid> and no <email>
     BOARD_REGEX = %r{
         \A(?<header>(?<name>[^:]+?):?)\r?\n
-        \s*Nominated\ by:\s*(?<nomby>.*)\r?\n
-        \s*Seconded\ by:\s*(?<seconds>.*?)\r?\n+
-        \s*Nomination\ [sS]tatement:\s*?\r?\n+(?<statement>.*)\z
+        \s*Nominated\ by[:]?\s*(?<nomby>.*)\r?\n
+        \s*Seconded\ by[:]?\s*(?<seconds>.*?)\r?\n+
+        \s*Nomination\ [sS]tatement[:]?\s*?\r?\n+(?<statement>.*)\z
         }mx
 
     # This Regex is very similar to the one in the script used to create 
ballots:
     # 
https://svn.apache.org/repos/private/foundation/Meetings/steve-tools/seed-issues.py
     MEMBER_REGEX = %r{
       \A(?<header>(?:(?<uid>[-_.a-z0-9]+)\s+)?(?<name>[^:]+?):?)\r?\n
-      \s*Nominee\ email:\s*(?<email>.*)\r?\n
-      \s*Nominated\ by:\s*(?<nomby>.*)\r?\n
-      \s*Seconded\ by:\s*(?<seconds>.*?)\r?\n+
-      \s*Nomination\ [sS]tatement:\s*?\r?\n+(?<statement>.*)\z
+      \s*Nominee\ email[:]?\s*(?<email>.*)\r?\n
+      \s*Nominated\ by[:]?\s*(?<nomby>.*)\r?\n
+      \s*Seconded\ by[:]?\s*(?<seconds>.*?)\r?\n+
+      \s*Nomination\ [sS]tatement[:]?\s*?\r?\n+(?<statement>.*)\z
       }mx
 
     SECONDS_SEPARATOR = '    *** Statements by Seconds (below; please include 
your id) ***'

Reply via email to