mirror of
https://gitee.com/johng/gf
synced 2026-07-06 21:45:34 +08:00
Merge pull request #1509 from victory460/master
fix a comment error in IsSubDomain
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