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 77590a18 Allow any non-blank statement
77590a18 is described below

commit 77590a18d9298fa941862fc52992f553da378df6
Author: Sebb <[email protected]>
AuthorDate: Wed Jan 29 12:57:30 2025 +0000

    Allow any non-blank statement
---
 www/members/nominate_board.cgi | 2 --
 1 file changed, 2 deletions(-)

diff --git a/www/members/nominate_board.cgi b/www/members/nominate_board.cgi
index dca14de7..bd69352f 100755
--- a/www/members/nominate_board.cgi
+++ b/www/members/nominate_board.cgi
@@ -59,8 +59,6 @@ end
 # Validation as needed within the script
 # Returns: 'OK' or a text message describing the problem
 def validate_form(formdata: {})
-  statement = formdata['statement']
-  return "Please provide a statement" unless statement =~ %r{\S{3,}.+\S{3,}} # 
at least 2 three-letter words!
   uid = formdata['availid']
   return "You MUST provide a nomination statement for Candidate #{uid}; blank 
was provided!" if formdata['statement'].empty? 
   chk = ASF::Person[uid]&.asf_member?

Reply via email to