allow . in names
This commit is contained in:
parent
bf1c9a869c
commit
46bd0e5d51
|
@ -17,7 +17,7 @@ var (
|
|||
|
||||
// Name should be alphanum, underscore, slash
|
||||
// Data should be anything permitted in JSON
|
||||
regexpAlphaNum = regexp.MustCompile("^[a-zA-Z0-9_/]*$")
|
||||
regexpAlphaNum = regexp.MustCompile("^[a-zA-Z0-9._/]*$")
|
||||
regexpJSON = regexp.MustCompile(`^[a-zA-Z0-9_/ \-"':,\n\t.{}()\[\]]*$`)
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue