mirror of
https://github.com/retailcrm/mg-bot-helper.git
synced 2025-04-19 08:51:02 +00:00
Merge pull request #9 from Neur0toxine/master
Improved retailCRM URL validation
This commit is contained in:
commit
d4379d3726
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