Migrate to GitHub actions for coverage & unit test automation (#251)

This commit is contained in:
Joona Hoikkala
2021-01-11 17:31:09 +02:00
committed by GitHub
parent 9c6ca258e1
commit 835fbb9ef6
15 changed files with 88 additions and 64 deletions

View File

@ -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 {