look for magenets in link too
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user