The regex on the first / last name form fields of the patient search form are of type /g^[A-Za-z ]+$/, which invalidates things like apostrophes and em dashes that might be valid in patient names. We'll need to discuss what a better set of regex would be (or if we should be sanitizing the values outside of this frontend form field in the first place) and implement accordingly
Action Requested
Do a bit of research for how we should be sanitizing name input for frontend form fields
Change / remove the regex accordingly
Acceptance Criteria
Patient form field accepts a reasonable (up to the dev to determine what reasonable means!) set of patient names, which would include dashes / apostrophes etc. that might show up in a name
Why are we doing this?
The regex on the first / last name form fields of the patient search form are of type /g^[A-Za-z ]+$/, which invalidates things like apostrophes and em dashes that might be valid in patient names. We'll need to discuss what a better set of regex would be (or if we should be sanitizing the values outside of this frontend form field in the first place) and implement accordingly
Action Requested
Do a bit of research for how we should be sanitizing name input for frontend form fields Change / remove the regex accordingly
Acceptance Criteria
Patient form field accepts a reasonable (up to the dev to determine what reasonable means!) set of patient names, which would include dashes / apostrophes etc. that might show up in a name
Additional Context
No response