Add codespell job (#1281)

add codespell workflow and fixed spelling issues
This commit is contained in:
Maycon Santos
2023-11-07 13:37:57 +01:00
committed by GitHub
parent 125a7a9daf
commit b726b3262d
15 changed files with 42 additions and 28 deletions

View File

@@ -4,11 +4,12 @@ package dns
import (
"fmt"
"github.com/miekg/dns"
"golang.org/x/net/idna"
"net"
"regexp"
"strings"
"github.com/miekg/dns"
"golang.org/x/net/idna"
)
const (
@@ -95,7 +96,7 @@ func GetParsedDomainLabel(name string) (string, error) {
rawLabel := labels[0]
ascii, err := idna.Punycode.ToASCII(rawLabel)
if err != nil {
return "", fmt.Errorf("unable to convert host lavel to ASCII, error: %v", err)
return "", fmt.Errorf("unable to convert host label to ASCII, error: %v", err)
}
invalidHostMatcher := regexp.MustCompile(invalidHostLabel)