mirror of https://github.com/nodejs/node.git
url: add plus sign to protocol pattern
parent
56efe9cbc5
commit
d0552949b9
|
@ -30,7 +30,7 @@ exports.format = urlFormat;
|
|||
|
||||
// define these here so at least they only have to be
|
||||
// compiled once on the first module load.
|
||||
var protocolPattern = /^([a-z0-9]+:)/i,
|
||||
var protocolPattern = /^([a-z0-9+]+:)/i,
|
||||
portPattern = /:[0-9]+$/,
|
||||
// RFC 2396: characters reserved for delimiting URLs.
|
||||
delims = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'],
|
||||
|
|
Loading…
Reference in New Issue