feat: add configuration checking
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user