Luson045 / medi-connect

Medi-connect(now Med Space) is an online hospital appointment booking website. Visit our website, Make sure the check the announcement... LEAVE US A ⭐...
https://med-space.vercel.app/
MIT License
34 stars 85 forks source link

Use Regex for FormData Validation #231

Closed Rizvi-Faiz closed 1 minute ago

Rizvi-Faiz commented 3 days ago

Issue: Use Regex for FormData Validation

Description:

The current implementation of form validation does not utilize regular expressions (regex), which limits the flexibility and accuracy of the validation process for certain input fields. Regex allows for more precise control over patterns such as emails, phone numbers, and custom formats that aren't easily handled by basic validation methods.

Benefits of Using Regex:

Areas for Improvement:

Screenshots

image

Rizvi-Faiz commented 3 days ago

@Luson045 Can you please assign this issue to me

Luson045 commented 2 days ago

@Rizvi-Faiz work is being done on it

Rizvi-Faiz commented 2 days ago

@Luson045 i shared a screen shot and it is not there

Rizvi-Faiz commented 2 days ago

@Luson045 i shared a screenshot showing that it is not present so can you assign it to me

Luson045 commented 2 days ago

@Rizvi-Faiz k fine, but it should not hinder the user experience, i.e. user must not get annoyed because all his inputs are not being accepted as valid.

bj-jiwrajka commented 1 day ago

hi @Luson045, the regex for email and phone number has been added in the PR #301 resolving the issues #264 and #231. Also, the regex for strong password will be resolved in the issue #302 . you can reassign it to me too, since I've working on it since earlier.