Files
Adaptix-Framework-AdaptixC2/AdaptixServer/core/utils/valid/valid.go
T
2024-08-21 21:11:24 +03:00

9 lines
169 B
Go

package isvalid
import "regexp"
func IsValidUriString(s string) bool {
re := regexp.MustCompile(`^/(?:[a-zA-Z0-9]+(?:/[a-zA-Z0-9]+)*)?$`)
return re.MatchString(s)
}