Skip to content
New issue

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

Error message provided via function not being returned in validation errors when using .matches() #849

Closed
KeelanM90 opened this issue Apr 21, 2020 · 0 comments · Fixed by #850

Comments

@KeelanM90
Copy link
Contributor

KeelanM90 commented Apr 21, 2020

Describe the bug
As of version 0.28.4 the default error message is returned when a function is provided for the message param in string.matches() rather than the given message within the function

To Reproduce
https://codesandbox.io/s/eager-leftpad-sbpxk?file=/src/index.test.js

Expected behavior
As per prior versions, expect to pass a function that returns a string and be provided with the given message in the event of an error

Platform (please complete the following information):

  • Browser Chrome
  • Version 80

Additional context
Aim to provide a PR to fix this

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

Successfully merging a pull request may close this issue.

1 participant