From e0c0eb8127845f1c5c0dd4908607bcf3d542b79a Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Wed, 28 Oct 2020 17:11:51 -1000 Subject: [PATCH] standard --- test/stats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/stats.js b/test/stats.js index 819c25b..646b2ca 100644 --- a/test/stats.js +++ b/test/stats.js @@ -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) {