aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--go/game/set.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/go/game/set.go b/go/game/set.go
index 89a7c740..3690e839 100644
--- a/go/game/set.go
+++ b/go/game/set.go
@@ -105,7 +105,7 @@ func (set SetIdentifier) CardPaths() []string {
walk = func(n *html.Node) {
if n.Type == html.ElementNode && n.Data == "a" {
for _, a := range n.Attr {
- if a.Key == "href" {
+ if a.Key == "href" == strings.HasSuffix(a.Val, ".yml") {
paths = append(paths, path.Join(set.String(), strings.TrimSuffix(a.Val, ".yml")))
break
}