1
0
mirror of synced 2024-11-21 20:16:02 +03:00

update validator

This commit is contained in:
Alex Lushpai 2019-03-29 16:13:06 +03:00
parent 40269cdf5c
commit 7805884ef4

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)`) var regCommandName = regexp.MustCompile(`https://?[\da-z.-]+\.(retailcrm\.(ru|pro|es)|ecomlogic\.com|simlachat\.com)`)
func setValidation() { func setValidation() {
if v, ok := binding.Validator.Engine().(*validator.Validate); ok { if v, ok := binding.Validator.Engine().(*validator.Validate); ok {