feat: add configuration checking

This commit is contained in:
Jonas Kaninda
2024-11-10 14:52:31 +01:00
parent 1a038ce0f5
commit a549e33e9a
9 changed files with 202 additions and 36 deletions

View File

@@ -12,6 +12,7 @@ You may get a copy of the License at
import (
"net/url"
"os"
"regexp"
"strconv"
"strings"
)
@@ -115,3 +116,7 @@ func UrlParsePath(uri string) string {
}
return parse.Path
}
func HasWhitespace(s string) bool {
return regexp.MustCompile(`\s`).MatchString(s)
}