Closed mohitb35 closed 11 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
donate-with-planet | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 20, 2023 3:10pm |
I was able to add just -
as a valid value in first name and last name. Is this the expected behavior?
Same goes for company name, I'm able to add just a special character as a valid value.
I was able to add just
-
as a valid value in first name and last name. Is this the expected behavior?Same goes for company name, I'm able to add just a special character as a valid value.
Ideally should not be possible, but I'm trying to match the validation to the backend.
@jmiridis @mariahosfeld should we update this to prevent special characters at the start of the first name, last name, and company name?
I was able to add just
-
as a valid value in first name and last name. Is this the expected behavior? Same goes for company name, I'm able to add just a special character as a valid value.Ideally should not be possible, but I'm trying to match the validation to the backend.
@jmiridis @mariahosfeld should we update this to prevent special characters at the start of the first name, last name, and company name?
Even though it might be an edge case, I think for first name & last name we should prevent.
I was able to add just
-
as a valid value in first name and last name. Is this the expected behavior?Same goes for company name, I'm able to add just a special character as a valid value.
For company name it is okay, we need to allow starting with a special character.
I was able to add just
-
as a valid value in first name and last name. Is this the expected behavior? Same goes for company name, I'm able to add just a special character as a valid value.For company name it is okay, we need to allow starting with a special character.
lgtm
Resolves errors faced due to mismatch in server/client validation for the contact form fields
Changes:
hookform/devtools
to debug rhf forms when needed b.babel/plugin-transform-unicode-regex
- to allow unicode regexp patterns as used in server validation