We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does this library support optional characters? For instance a US zip code is usually in format 99999 but sometimes can be in format 99999-9999.
99999
99999-9999
The text was updated successfully, but these errors were encountered:
I looked at the options and initially thought the charRegex option allowed me to type in my own mask regex, like this:
const { getInputProps: zipCodeInput } = useInputMask({ charRegex: /^\d{5}(?:-\d{4})?$/ });
But upon further looking, it looks like that option only sets the allowable characters.
Sorry, something went wrong.
No branches or pull requests
Does this library support optional characters? For instance a US zip code is usually in format
99999
but sometimes can be in format99999-9999
.The text was updated successfully, but these errors were encountered: