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
3.4.1
react 16.2.0, antd 3.4.1
Type any character in the input box
The validation should fail, because the regex only allows numbers
The validation succeeeds although the regex should fail
The text was updated successfully, but these errors were encountered:
{getFieldDecorator("testNumber", { rules: [ { required: true, - type: "regexp", pattern: new RegExp("^[0-9]*$"), message: "Wrong format!" } ] })(<Input />)}
https://codesandbox.io/s/w09xl68pnw
Sorry, something went wrong.
No branches or pull requests
Version
3.4.1
Environment
react 16.2.0, antd 3.4.1
Reproduction link
Steps to reproduce
Type any character in the input box
What is expected?
The validation should fail, because the regex only allows numbers
What is actually happening?
The validation succeeeds although the regex should fail
The text was updated successfully, but these errors were encountered: