mirror of
https://github.com/retailcrm/mg-bot-helper.git
synced 2025-04-19 00:41:00 +00:00
Improved retailCRM URL validation
This commit is contained in:
parent
2666bcef89
commit
bb5a6d831d
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ import (
|
|||
"gopkg.in/go-playground/validator.v9"
|
||||
)
|
||||
|
||||
var regCommandName = regexp.MustCompile(`https://?[\da-z.-]+\.(retailcrm\.(ru|pro|es)|ecomlogic\.com|simlachat\.(com|ru))`)
|
||||
var regCommandName = regexp.MustCompile(`^https://?[\da-z.-]+\.(retailcrm\.(ru|pro|es)|ecomlogic\.com|simlachat\.(com|ru))/?$`)
|
||||
|
||||
type defaultValidator struct {
|
||||
once sync.Once
|
||||
|
|
Loading…
Add table
Reference in a new issue