go-domain-util icon indicating copy to clipboard operation
go-domain-util copied to clipboard

Accepting Invalid domain patterns.

Open bsandy999 opened this issue 6 years ago • 1 comments

Just wanted to add some observations. Given package is working awesome, just apart from some basic things.

  1. If we pass email id as domain its accepting and validating as valid domain name. Need to fix it. (e.g [email protected] is email id and not domain )
  2. If we pass consecutive dots in the domain name it's accepting and validating as a valid domain name. (e.g google..com, delivery...maxpain.com etc)

bsandy999 avatar Nov 23 '18 08:11 bsandy999

Hey,

I brought in a PR. see #16.

Cheers

gohumble avatar Oct 25 '19 13:10 gohumble