Skip to content

Commit

Permalink
Allow a.b. instead of alt.binaries.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tensai75 committed Dec 4, 2022
1 parent 308b36c commit 60de8d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func scanGroups(groupsString string) error {
} else {
groups = strings.Split(groupsString, ",")
for i, group := range groups {
groups[i] = strings.TrimSpace(group)
groups[i] = strings.Replace(strings.TrimSpace(group), "a.b.", "alt.binaries.", 1)
}
}
if len(groups) == 0 {
Expand All @@ -66,7 +66,7 @@ func readGroups(path string) error {

scanner := bufio.NewScanner(file)
for scanner.Scan() {
groups = append(groups, scanner.Text())
groups = append(groups, strings.Replace(strings.TrimSpace(scanner.Text()), "a.b.", "alt.binaries.", 1))
}
return scanner.Err()
}

0 comments on commit 60de8d4

Please sign in to comment.