Canonical case fixes. #193

This commit is contained in:
Andrey Smirnov
2015-03-11 01:25:54 +03:00
parent 2ceabb69e6
commit b4cf2e7065
+9 -3
View File
@@ -160,11 +160,17 @@ func init() {
func canonicalCase(field string) string {
upper := strings.ToUpper(field)
if upper == "SHA1" || upper == "SHA256" {
switch upper {
case "SHA1", "SHA256", "SHA512":
return upper
}
if upper == "MD5SUM" {
case "MD5SUM":
return "MD5Sum"
case "NOTAUTOMATIC":
return "NotAutomatic"
case "BUTAUTOMATICUPGRADES":
return "ButAutomaticUpgrades"
}
startOfWord := true