Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Fix optional next character to respect type #463

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

supermatty
Copy link

I found optional characters did not have their types respected. For example:

(###) ###-#### ?#?#?#

Would allow (555) 555-5555 ddd

I added anchors (if anchors are not already present) to makeRegexpOptional() so the only the optional character would match.

@ux-engineer
Copy link

Does this get merged?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants