Fix one more problem.
This commit is contained in:
parent
248c45d1f6
commit
1e66a194bd
2 changed files with 7 additions and 2 deletions
strmangle
|
@ -205,8 +205,12 @@ func TitleCase(n string) string {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
buf.WriteByte(word[0] - 32)
|
||||
buf.Write(word[1:])
|
||||
if c := word[0]; c > 96 && c < 123 {
|
||||
buf.WriteByte(word[0] - 32)
|
||||
buf.Write(word[1:])
|
||||
} else {
|
||||
buf.Write(word)
|
||||
}
|
||||
}
|
||||
|
||||
start = end + 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue