mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
fix a comment error in IsSubDomain
Signed-off-by: xuweiwei <xuweiwei_yewu@cmss.chinamobile.com>
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user