look for magenets in link too

This commit is contained in:
bel
2024-07-30 16:37:59 -06:00
parent 6916a9b050
commit 5fa2068548
2 changed files with 8 additions and 4 deletions

View File

@@ -244,6 +244,10 @@ func TestFindMagnets(t *testing.T) {
s: `here is a link https://my.domain/a.b/c.torrent, and another <a href="https://my.domain/a/b/c.torrent"></a>`,
l: 2,
},
{
s: `https://my.domain/a.b/c.torrent`,
l: 1,
},
}
for i, c := range cases {