mirror of
https://github.com/PretendoNetwork/friends.git
synced 2026-03-21 18:04:11 -05:00
fix: check initialisms list in capitalizeWord before checking if word ends with "S"
This commit is contained in:
parent
0ee8d52fe1
commit
6b70800444
|
|
@ -79,6 +79,11 @@ func (cp *ConfigParser[T]) capitalizeWord(word string) string {
|
|||
}
|
||||
|
||||
upper := strings.ToUpper(word)
|
||||
|
||||
if cp.initialisms[upper] {
|
||||
return upper
|
||||
}
|
||||
|
||||
endsWithS := strings.HasSuffix(upper, "S")
|
||||
withoutS := strings.TrimSuffix(upper, "S")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user