Open dsinla opened 1 year ago
@dsinla adding these steps to reproduce for clarity
Suggest testing with other versions, such as
My estimate: 5
Regexes are tricky, and regexes for content made by users on the CMS can get even tougher. This includes getting a flexible enough regex that is still accurate and correctly formatting the phone numbers in the same way.
I would also estimate this with a 5. I believe we have some existing scripts we have used to manipulate phone data in the past but a 5 is a nice safe estimate in case we have to script this from scratch.
Next steps: we need to define requirements for this
the scope would be to define the desired behavior for all phone numbers
Describe the defect
Phone numbers in the operating status "more info" field for Vet Centers, appearing on the locations page, may not recognize phone numbers using parentheses so they aren't being formatted correctly.
From @mmiddaugh, original https://dsva.slack.com/archives/C0FQSS30V/p1670535690302759
When a phone number is entered with hyphens, the number is correctly rendered as a link:![image](https://user-images.githubusercontent.com/62269210/206762426-eee07a3e-42ef-437c-b096-85efe0af9ebd.png)
When the phone number is entered with parentheses, the number is not rendered as a link:![image](https://user-images.githubusercontent.com/62269210/206762206-ae323803-f4d6-4d36-bbab-13e39c48e1c1.png)
Engineering notes
See this regex that matches phone numbers. This will not match the
(xxx) xxx-xxxx
version anywhere this is used. So, what we need to find:To Reproduce
AC / Expected behavior
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here. Reach out to the Product Managers to determine if it should be escalated as critical (prevents users from accomplishing their work with no known workaround and needs to be addressed within 2 business days).
Desktop (please complete the following information if relevant, or delete)
Labels
(You can delete this section once it's complete)
CMS Team
Please check the team(s) that will do this work.
Program
Platform CMS Team
Sitewide Crew
⭐️ Sitewide CMS
⭐️ Public Websites
⭐️ Facilities
⭐️ User support