asaskevich / govalidator

[Go] Package of validators and sanitizers for strings, numerics, slices and structs
MIT License
6.05k stars 555 forks source link

Add e164 #426

Closed ArshiAAkhavan closed 3 years ago

ArshiAAkhavan commented 3 years ago

I added E164 validator for phone numbers in this repo. Also wrote a test to check whether it works or not in validator_test.go file. Changes I made are: added proper E164 regex in patterns.go and then added a function in validator.go to check whether if phone number has E164 format or not.

asaskevich commented 3 years ago

Thank you!