url: add plus sign to protocol pattern

v0.7.4-release
Maciej Małecki 2011-09-05 21:15:18 +02:00 committed by Ben Noordhuis
parent 56efe9cbc5
commit d0552949b9
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ exports.format = urlFormat;
// define these here so at least they only have to be // define these here so at least they only have to be
// compiled once on the first module load. // compiled once on the first module load.
var protocolPattern = /^([a-z0-9]+:)/i, var protocolPattern = /^([a-z0-9+]+:)/i,
portPattern = /:[0-9]+$/, portPattern = /:[0-9]+$/,
// RFC 2396: characters reserved for delimiting URLs. // RFC 2396: characters reserved for delimiting URLs.
delims = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'], delims = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'],