fix: Update Regex pattern for client-side phone input validation in contact form

This commit is contained in:
Derek L. Seitz 2025-08-17 18:57:51 -05:00
parent ec4511ca89
commit 628df8cb2b
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ pageScripts:
<div class="phone"> <div class="phone">
<label for="phone">Phone:<span class="req-ask">*</span></label> <label for="phone">Phone:<span class="req-ask">*</span></label>
<input type="tel" id="phone" name="phone" placeholder="Ex. 111-333-4444" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}" required aria-describedby="phone-error"> <input type="tel" id="phone" name="phone" placeholder="Ex. 111-333-4444" pattern="^(\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4})$" required aria-describedby="phone-error">
<span class="error-message" id="phone-error" aria-live="polite"></span> <span class="error-message" id="phone-error" aria-live="polite"></span>
</div> </div>