useField
with RegEx does not parse correctly the params
#3073
Labels
🤔 needs reproduction
This issue requires a demo
Versions
Describe the bug
useField
with regex does not parse correctly the paramsnote: I am assuming that a RegEx can be used with
useField
To reproduce
Steps to reproduce the behavior:
useField
params
value is `{}What is happening
function buildParams(provided)
is doing
Object.keys
of aRegEx
which returns an empty array[]
.I guess a different
if
statement should be added to handleRegEx
Expected behavior
regex should be evaluated
Demo link
If applicable, add a minimal demo link to help explain your problem. You can use JSFiddle or Codesandbox.
Desktop (please complete the following information):
Smartphone (please complete the following information):
N/A
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: