-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
Hi @amatsuda and thanks for great gem!
I want to know do you have any plans to support Regexp in a future? Seems like this library really helps to avoid duplication between client and server, but with regexp I have to copy them anyway.
Or, maybe you have any advice for that?
I have for example, validation in backend with
value =~ /\A(4|9)\d{7}\Z/
and for frontend:
<%= f.telephone_field(:phone,
placeholder: 'Mobile',
pattern: '^[49]\d{7}$') %>
Ana06
Metadata
Metadata
Assignees
Labels
No labels