asaskevich / govalidator

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

Fix #386 fix url regex pattern to accept multipe hyphens #410

Open cep-ter opened 3 years ago

cep-ter commented 3 years ago
Q A
Bugfix yes

Description

This PR tries to Fix #386 where URLs with more than 3 hyphens are not validated e.g ("http://www.foo---bar.com/") I used this site (PHP FILTER_VALIDATE_URL) as a validation site

sergeyglazyrindev commented 2 years ago

Hello guys! I forked this package cause owner disappeared. Hope, he will be back, but it would be easier to merge these changes back if he is back Link to my repo: create issue there and we'll discuss it.