Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/apache/whimsy
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneCurcuru committed Jan 29, 2025
2 parents e5506ce + 8f9f1e0 commit 5e1f732
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions www/members/nominate_board.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ 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?
Expand Down

0 comments on commit 5e1f732

Please sign in to comment.