fix a comment error in IsSubDomain

Signed-off-by: xuweiwei <xuweiwei_yewu@cmss.chinamobile.com>
This commit is contained in:
xuweiwei
2021-12-03 17:19:42 +08:00
parent 80e8a58f45
commit f56c2ed356

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
}