From f56c2ed356b77f7be4635da925c1003cee6fd92f Mon Sep 17 00:00:00 2001 From: xuweiwei Date: Fri, 3 Dec 2021 17:19:42 +0800 Subject: [PATCH] fix a comment error in IsSubDomain Signed-off-by: xuweiwei --- text/gstr/gstr_domain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text/gstr/gstr_domain.go b/text/gstr/gstr_domain.go index ae4155277..45f31bb72 100644 --- a/text/gstr/gstr_domain.go +++ b/text/gstr/gstr_domain.go @@ -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 }