fix CI and rework package structure (#111)

This commit is contained in:
Pat Whittingslow
2026-05-13 15:44:30 -03:00
committed by GitHub
parent a2970b923d
commit b95eb03aa5
17 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -78,11 +78,11 @@ func (n Name) EqualString(strname string) bool {
}
label := data[1 : 1+labelLen]
var seg string
idx := strings.IndexByte(strname, '.')
if idx < 0 {
before, after, ok := strings.Cut(strname, ".")
if !ok {
seg, strname = strname, ""
} else {
seg, strname = strname[:idx], strname[idx+1:]
seg, strname = before, after
}
if len(seg) != len(label) || seg != string(label) {
return false