You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, in the application that we currently use this library in, we use it to input codes with the regex pattern of /^[0-9a-zA-Z]{6}$, however, this library only allows enforcing of /^[0-9]+$/, otherwise all characters are allowed.
Would it be possible, or desirable, to allow the user to set their own regexp pattern? I could work on this as a pull request if needed.
Code example as to how I imagine this could look in use:
@mstieranka Hi. I need to research it. Not sure that such pattern is required. Maybe I will add an option with function to validate Input where will be possible to evaluate the user input.
Hi, in the application that we currently use this library in, we use it to input codes with the regex pattern of
/^[0-9a-zA-Z]{6}$
, however, this library only allows enforcing of/^[0-9]+$/
, otherwise all characters are allowed.Would it be possible, or desirable, to allow the user to set their own regexp pattern? I could work on this as a pull request if needed.
Code example as to how I imagine this could look in use:
The text was updated successfully, but these errors were encountered: