File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ var inherits = require('inherits')
1010var common = require ( '../common' )
1111var Tracker = require ( './tracker' )
1212
13- var HTTP_SCRAPE_SUPPORT = / \/ ( a n n o u n c e ) [ ^ \ /] * $ /
13+ var HTTP_SCRAPE_SUPPORT = / \/ ( a n n o u n c e ) [ ^ / ] * $ /
1414
1515inherits ( HTTPTracker , Tracker )
1616
Original file line number Diff line number Diff line change 66var Buffer = require ( 'safe-buffer' ) . Buffer
77var querystring = require ( 'querystring' )
88
9- exports . IPV4_RE = / ^ [ \d \ .] + $ /
9+ exports . IPV4_RE = / ^ [ \d . ] + $ /
1010exports . IPV6_RE = / ^ [ \d a - f A - F : ] + $ /
1111exports . REMOVE_IPV4_MAPPED_IPV6_RE = / ^ : : f f f f : /
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 } )
You can’t perform that action at this time.
0 commit comments