mirror of
https://github.com/joohoi/acme-dns.git
synced 2025-07-15 02:08:10 +07:00
Migrate to GitHub actions for coverage & unit test automation (#251)
This commit is contained in:
@ -2,11 +2,10 @@ package main
|
||||
|
||||
import (
|
||||
"unicode/utf8"
|
||||
"regexp"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
|
||||
"regexp"
|
||||
)
|
||||
|
||||
func getValidUsername(u string) (uuid.UUID, error) {
|
||||
@ -32,7 +31,6 @@ func validSubdomain(s string) bool {
|
||||
return RegExp.MatchString(s)
|
||||
}
|
||||
|
||||
|
||||
func validTXT(s string) bool {
|
||||
sn := sanitizeString(s)
|
||||
if utf8.RuneCountInString(s) == 43 && utf8.RuneCountInString(sn) == 43 {
|
||||
|
Reference in New Issue
Block a user