From d0552949b97f4819a7b22c93858c1ee7d6fd4377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Ma=C5=82ecki?= Date: Mon, 5 Sep 2011 21:15:18 +0200 Subject: [PATCH] url: add plus sign to protocol pattern --- lib/url.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/url.js b/lib/url.js index 18cddad4276..fdf434c6c38 100644 --- a/lib/url.js +++ b/lib/url.js @@ -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'],