Preserve Unicode marks in MakePath

Fixes #1488
This commit is contained in:
Bjørn Erik Pedersen 2015-10-18 10:36:27 +02:00
parent 9d603ce88a
commit 36adb5fb88
2 changed files with 14 additions and 11 deletions

View file

@ -96,7 +96,7 @@ func UnicodeSanitize(s string) string {
target := make([]rune, 0, len(source))
for _, r := range source {
if unicode.IsLetter(r) || unicode.IsDigit(r) || r == '.' || r == '/' || r == '\\' || r == '_' || r == '-' || r == '#' {
if unicode.IsLetter(r) || unicode.IsDigit(r) || unicode.IsMark(r) || r == '.' || r == '/' || r == '\\' || r == '_' || r == '-' || r == '#' {
target = append(target, r)
}
}