mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 03:01:57 +02:00
Update safe string pat in go code to match updated spec
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user