mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 12:11:36 +00:00
standard
This commit is contained in:
parent
6e4faaf670
commit
e0c0eb8127
@ -8,7 +8,7 @@ var peerId = Buffer.from('-WW0091-4ea5886ce160')
|
||||
var unknownPeerId = Buffer.from('01234567890123456789')
|
||||
|
||||
function parseHtml (html) {
|
||||
var extractValue = new RegExp('[^v^h](\\d+)')
|
||||
var extractValue = /[^v^h](\d+)/
|
||||
var array = html.replace('torrents', '\n').split('\n').filter(function (line) {
|
||||
return line && line.trim().length > 0
|
||||
}).map(function (line) {
|
||||
|
Loading…
Reference in New Issue
Block a user