mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-06 08:24:03 +00:00
Update vendor (#1265)
This commit is contained in:
8
vendor/github.com/mattermost/mattermost-server/v5/model/utils.go
generated
vendored
8
vendor/github.com/mattermost/mattermost-server/v5/model/utils.go
generated
vendored
@ -659,12 +659,12 @@ func AsStringBoolMap(list []string) map[string]bool {
|
||||
|
||||
// SanitizeUnicode will remove undesirable Unicode characters from a string.
|
||||
func SanitizeUnicode(s string) string {
|
||||
return strings.Map(filterBlacklist, s)
|
||||
return strings.Map(filterBlocklist, s)
|
||||
}
|
||||
|
||||
// filterBlacklist returns `r` if it is not in the blacklist, otherwise drop (-1).
|
||||
// Blacklist is taken from https://www.w3.org/TR/unicode-xml/#Charlist
|
||||
func filterBlacklist(r rune) rune {
|
||||
// filterBlocklist returns `r` if it is not in the blocklist, otherwise drop (-1).
|
||||
// Blocklist is taken from https://www.w3.org/TR/unicode-xml/#Charlist
|
||||
func filterBlocklist(r rune) rune {
|
||||
const drop = -1
|
||||
switch r {
|
||||
case '\u0340', '\u0341': // clones of grave and acute; deprecated in Unicode
|
||||
|
Reference in New Issue
Block a user