From 9663d58aaa0d86bcb4fa38bab9b09394b7c8d726 Mon Sep 17 00:00:00 2001 From: shaun <58957909+shaun-technovation@users.noreply.github.com> Date: Mon, 23 Sep 2024 10:06:37 -0600 Subject: [PATCH] Chore: Update first/last name validation This will make it so that a first name or last name can't begin with one or more dashes or periods; dashes and periods are fine anywhere else though. This is just a start for name validation, it will cover the known issues we've had, we can definitely add more special characters to the list and improve it. Refs: #4911 --- .../components/ChapterAmbassadorStepTwo.vue | 8 ++++---- .../components/JudgeStepTwo.vue | 16 +++++++-------- .../components/MentorStepTwo.vue | 16 +++++++-------- .../components/StudentStepTwo.vue | 12 +++++------ app/models/account.rb | 2 +- spec/models/account_spec.rb | 20 +++++++++++++++++++ 6 files changed, 47 insertions(+), 27 deletions(-) diff --git a/app/javascript/new_registration/components/ChapterAmbassadorStepTwo.vue b/app/javascript/new_registration/components/ChapterAmbassadorStepTwo.vue index 79978288f..e9a736aa6 100644 --- a/app/javascript/new_registration/components/ChapterAmbassadorStepTwo.vue +++ b/app/javascript/new_registration/components/ChapterAmbassadorStepTwo.vue @@ -8,13 +8,13 @@
- Your phone number will be shared with the Technovation Ambassador for your region and may be used to contact you - regarding volunteer opportunities. Providing your phone number is optional. + Your phone number will be shared with the Technovation Ambassador for your region and may be used to contact + you regarding volunteer opportunities. Providing your phone number is optional.
- Your phone number will be shared with the Technovation Ambassador for your region and may be used to contact you - regarding volunteer opportunities. Providing your phone number is optional. + Your phone number will be shared with the Technovation Ambassador for your region and may be used to contact + you regarding volunteer opportunities. Providing your phone number is optional.
The cutoff date used for division assignment is {{ divisionCutoffDate }}. - Based on the birthday you entered, {{ pronoun }} will be {{ ageByDivisionCutoff }} years old - by this date. + Based on the birthday you entered, {{ pronoun }} will be {{ ageByDivisionCutoff }} years + old by this date.