Skip to content

Commit f56c2ed

Browse files
committed
fix a comment error in IsSubDomain
Signed-off-by: xuweiwei <xuweiwei_yewu@cmss.chinamobile.com>
1 parent 80e8a58 commit f56c2ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/gstr/gstr_domain.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func IsSubDomain(subDomain string, mainDomain string) bool {
2424
// Eg:
2525
// "s.s.goframe.org" is not sub-domain of "*.goframe.org"
2626
// but
27-
// "s.s.goframe.org" is not sub-domain of "goframe.org"
27+
// "s.s.goframe.org" is sub-domain of "goframe.org"
2828
if mainLength > 2 && subLength > mainLength {
2929
return false
3030
}

0 commit comments

Comments
 (0)