mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-04 02:52:07 +00:00
allow . in names
This commit is contained in:
@@ -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.{}()\[\]]*$`)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user