Ver Fonte

Adjustment to the _ and - handling.

Matt Bolt há 6 anos atrás
pai
commit
986a7f60a9
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      costmodel/costmodel.go

+ 2 - 1
costmodel/costmodel.go

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