Skip to content

Commit 3a0fec0

Browse files
committed
standard fixes
1 parent 524eb13 commit 3a0fec0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/client/http-tracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var inherits = require('inherits')
1010
var common = require('../common')
1111
var Tracker = require('./tracker')
1212

13-
var HTTP_SCRAPE_SUPPORT = /\/(announce)[^\/]*$/
13+
var HTTP_SCRAPE_SUPPORT = /\/(announce)[^/]*$/
1414

1515
inherits(HTTPTracker, Tracker)
1616

lib/common-node.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
var Buffer = require('safe-buffer').Buffer
77
var querystring = require('querystring')
88

9-
exports.IPV4_RE = /^[\d\.]+$/
9+
exports.IPV4_RE = /^[\d.]+$/
1010
exports.IPV6_RE = /^[\da-fA-F:]+$/
1111
exports.REMOVE_IPV4_MAPPED_IPV6_RE = /^::ffff:/
1212

@@ -57,7 +57,7 @@ exports.querystringStringify = function (obj) {
5757
var saved = querystring.escape
5858
querystring.escape = escape // global
5959
var ret = querystring.stringify(obj)
60-
ret = ret.replace(/[@\*\/\+]/g, function (char) {
60+
ret = ret.replace(/[@*/+]/g, function (char) {
6161
// `escape` doesn't encode the characters @*/+ so we do it manually
6262
return '%' + char.charCodeAt(0).toString(16).toUpperCase()
6363
})

0 commit comments

Comments
 (0)