mirror of https://github.com/spf13/afero.git
Improves NeuterAccents godoc
This commit is contained in:
parent
e67d870304
commit
242208d9a2
2
util.go
2
util.go
|
@ -157,7 +157,7 @@ func UnicodeSanitize(s string) string {
|
|||
return string(target)
|
||||
}
|
||||
|
||||
// Transform characters with accents into plan forms
|
||||
// Transform characters with accents into plain forms.
|
||||
func NeuterAccents(s string) string {
|
||||
t := transform.Chain(norm.NFD, transform.RemoveFunc(isMn), norm.NFC)
|
||||
result, _, _ := transform.String(t, string(s))
|
||||
|
|
Loading…
Reference in New Issue