Browse Source

allow . in names

pull/91/head
Ethan Buchman 9 years ago
parent
commit
46bd0e5d51
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      types/names.go

+ 1
- 1
types/names.go View File

@ -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…
Cancel
Save