diff options
Diffstat (limited to 'go/game/set.go')
| -rw-r--r-- | go/game/set.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/go/game/set.go b/go/game/set.go index c4733423..8e20487b 100644 --- a/go/game/set.go +++ b/go/game/set.go @@ -121,9 +121,8 @@ func (set SetIdentifier) CardPaths() []string { func SetListToSets(setList string) ([]SetIdentifier, error) { sets := []SetIdentifier{} - setList = strings.Replace(setList, " ", "", 0) - setsRaw := strings.Split(setList, ",") - for _, s := range setsRaw { + setList = strings.ReplaceAll(setList, " ", "") + for s := range strings.SplitSeq(setList, ",") { set, found := SetNames[s] if found { sets = append(sets, set) |
