Merge pull request #1509 from victory460/master

fix a comment error in IsSubDomain
This commit is contained in:
John Guo
2021-12-05 21:57:43 +08:00
committed by GitHub

View File

@ -24,7 +24,7 @@ func IsSubDomain(subDomain string, mainDomain string) bool {
// Eg:
// "s.s.goframe.org" is not sub-domain of "*.goframe.org"
// but
// "s.s.goframe.org" is not sub-domain of "goframe.org"
// "s.s.goframe.org" is sub-domain of "goframe.org"
if mainLength > 2 && subLength > mainLength {
return false
}