Przeglądaj źródła

Adjustment to the _ and - handling.

Matt Bolt 6 lat temu
rodzic
commit
986a7f60a9
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      costmodel/costmodel.go

+ 2 - 1
costmodel/costmodel.go

@@ -1257,7 +1257,8 @@ func pruneDuplicates(s []string) []string {
 		if strings.Contains(v, "_") {
 			name := strings.Replace(v, "_", "-", -1)
 			if !m[name] {
-				result = append(result, v)
+				result = append(result, name)
+				m[name] = true
 			}
 		} else {
 			result = append(result, v)