(key string)
| 91 | } |
| 92 | |
| 93 | func normalizeKey(key string) string { |
| 94 | // this feels so wrong, but that's apparently how git behave. |
| 95 | // only section and final segment are case insensitive, subsection in between are not. |
| 96 | s := strings.Split(key, ".") |
| 97 | s[0] = strings.ToLower(s[0]) |
| 98 | s[len(s)-1] = strings.ToLower(s[len(s)-1]) |
| 99 | return strings.Join(s, ".") |
| 100 | } |
no outgoing calls
no test coverage detected