1
0
mirror of synced 2024-11-25 13:16:02 +03:00

Updated validator.go

This commit is contained in:
Pavel 2019-06-25 14:46:25 +03:00
parent b148cae917
commit 9aef385f64

View File

@ -8,7 +8,7 @@ import (
"gopkg.in/go-playground/validator.v8" "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|ru))/?$`)
func setValidation() { func setValidation() {
if v, ok := binding.Validator.Engine().(*validator.Validate); ok { if v, ok := binding.Validator.Engine().(*validator.Validate); ok {