Update safe string pat in go code to match updated spec

This commit is contained in:
Kovid Goyal 2023-07-08 10:32:17 +05:30
parent 039e17840a
commit d676886ab8
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -156,7 +156,7 @@ var ftc_field_map = utils.Once(func() map[string]reflect.StructField {
})
var safe_string_pat = utils.Once(func() *regexp.Regexp {
return regexp.MustCompile(`[^0-9a-zA-Z_:.,/!@#$%^&*()[\]{}~` + "`" + `?"'\\|=+-]`)
return regexp.MustCompile(`[^0-9a-zA-Z_:./@-]`)
})
func safe_string(x string) string {