diff --git a/src/validator.go b/src/validator.go index 63d0d1c..61b51b3 100644 --- a/src/validator.go +++ b/src/validator.go @@ -8,7 +8,7 @@ import ( "gopkg.in/go-playground/validator.v8" ) -var regCommandName = regexp.MustCompile(`https://?[\da-z.-]+\.(retailcrm\.(ru|pro|es)|ecomlogic\.com|simlachat\.com)`) +var regCommandName = regexp.MustCompile(`^https://?[\da-z.-]+\.(retailcrm\.(ru|pro|es)|ecomlogic\.com|simlachat\.com)/?$`) func setValidation() { if v, ok := binding.Validator.Engine().(*validator.Validate); ok {