Closed strikyflo closed 8 years ago
The syntax validation of a domain name according to the RFC is beyond the scope of this library.
what is the purpose of .valid?
Have a look at https://github.com/weppos/publicsuffix-ruby/blob/master/lib/public_suffix.rb#L118
Essentially, it validates whether the input is valid according to the PSL rules.
Hi,
I can validate that "-a.com" is valid domain name using PublicSuffix gem. Therefore it's absolutely not valid, according to the RFC, stackoverflow and any registrar. Same goes with 'a-.com'
Thank you :)