This commit is contained in:
Feross Aboukhadijeh 2020-10-28 17:11:51 -10:00
parent 6e4faaf670
commit e0c0eb8127

View File

@ -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) {