diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-08-12 10:36:48 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-12 10:36:48 +0200 |
| commit | 49db436fb0ef52eadc577aba05c91d35bb8ddd6b (patch) | |
| tree | 8de210fd0932597527c3d5aabef90902be6465ec | |
| parent | a36a44ddbe0e06963abb5dea9551fcaafd98fb06 (diff) | |
| download | muhqs-game-49db436fb0ef52eadc577aba05c91d35bb8ddd6b.tar.gz muhqs-game-49db436fb0ef52eadc577aba05c91d35bb8ddd6b.zip | |
only consider links to YAML cards
| -rw-r--r-- | go/game/set.go | 2 |
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 } |
