소스 검색

Adjustment to the _ and - handling.

Matt Bolt 6 년 전
부모
커밋
986a7f60a9
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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)