aboutsummaryrefslogtreecommitdiff
path: root/go/game
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-08-12 10:36:48 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2025-08-20 15:57:37 +0200
commita8cc0c015d1c4814b1f0b285ed5e6985dd8f6772 (patch)
tree77cec3b63c9f6b9ed34ec90e65e24eef01c984be /go/game
parentd1aa6ea48ea7acd0c5925f10a56457bd0b6f9140 (diff)
downloadmuhqs-game-a8cc0c015d1c4814b1f0b285ed5e6985dd8f6772.tar.gz
muhqs-game-a8cc0c015d1c4814b1f0b285ed5e6985dd8f6772.zip
only consider links to YAML cards
Diffstat (limited to 'go/game')
-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
}