diff --git a/handlers/torrent/main.go b/handlers/torrent/main.go index 5bde835..e2c8dfd 100755 --- a/handlers/torrent/main.go +++ b/handlers/torrent/main.go @@ -182,7 +182,7 @@ func handle(vpntor, outdir, content string) error { func findMagnets(s string) []string { patterns := []string{ `magnet:.xt[^ $"]*`, - `https:..[^"]*\.torrent`, + `https:..[^ "]*\.torrent`, } matches := []string{} for _, pattern := range patterns {