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

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 {