feat: disallow {} in member names
This commit is contained in:
parent
a33f39afe5
commit
3f003b5353
4 changed files with 4 additions and 4 deletions
|
@ -35,7 +35,7 @@ const (
|
|||
)
|
||||
|
||||
// member names must match this regex
|
||||
var memberNameRegex = regexp.MustCompile("^[^@\\?!#/\\\\[\\]\"'$%&()+<=>^|~`,]{1,100}$")
|
||||
var memberNameRegex = regexp.MustCompile("^[^@\\?!#/\\\\[\\]\"\\{\\}'$%&()+<=>^|~`,]{1,100}$")
|
||||
|
||||
func MemberNameValid(name string) bool {
|
||||
return memberNameRegex.MatchString(name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue