Describe the bug
Form validation error when the field's name contains some special characters since v4.0.0.
To Reproduce
Steps to reproduce the behavior:
- Go to this sandbox
- Type "A" in the field
- Submit the form
- See the error:
Invalid regular expression: /^[array-2].\d+/: Range out of order in character class
Codesandbox link (Required)
link to the sandbox
Expected behavior
Before v4.0.0 the validation was working fine (you can change the version in the package.json to v3.9.0 to see that everything is ok.
I'm suspecting 985c48d to be the reason of this error.
According to me it's related to the - in the field's name. For the context we have this character because some of our fields contain UUID.
Screenshots
Desktop (please complete the following information):
- OS: iOS
- Browser: Chrome
- Version 133.0.6943.127
Describe the bug
Form validation error when the field's name contains some special characters since v4.0.0.
To Reproduce
Steps to reproduce the behavior:
Codesandbox link (Required)
link to the sandbox
Expected behavior
Before v4.0.0 the validation was working fine (you can change the version in the package.json to v3.9.0 to see that everything is ok.
I'm suspecting 985c48d to be the reason of this error.
According to me it's related to the
-in the field's name. For the context we have this character because some of our fields contain UUID.Screenshots
Desktop (please complete the following information):