Merge pull request #6 from gwinn/master

update validator rules
This commit is contained in:
Alex Lushpai 2019-03-31 16:49:27 +03:00 committed by GitHub
commit 84b6d50f1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@ import (
"gopkg.in/go-playground/validator.v9"
)
var regCommandName = regexp.MustCompile(`https://?[\da-z.-]+\.(retailcrm\.(ru|pro|es)|ecomlogic\.com)`)
var regCommandName = regexp.MustCompile(`https://?[\da-z.-]+\.(retailcrm\.(ru|pro)|ecomlogic\.com|simlachat\.com)`)
type defaultValidator struct {
once sync.Once