phonelib icon indicating copy to clipboard operation
phonelib copied to clipboard

Update validation: phone valid if one country is valid

Open shqear93 opened this issue 4 years ago • 2 comments

validates :attribute, phone: { allow_blank: true, countries: [:us, :ca] }

Phone number should be valid if it's at least valid for one country from the provided list

shqear93 avatar Aug 24 '21 22:08 shqear93

@shqear93 nice PR, can you make this behavior optional, maybe via config param? And additionally this behavior doesn't respect possible param, this is required too

daddyz avatar Aug 26 '21 06:08 daddyz

@daddyz I'll work on that soon

shqear93 avatar Nov 15 '21 22:11 shqear93