projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56efe9c
)
url: add plus sign to protocol pattern
author
Maciej Małecki
<maciej.malecki@notimplemented.org>
Mon, 5 Sep 2011 19:15:18 +0000
(21:15 +0200)
committer
Ben Noordhuis
<info@bnoordhuis.nl>
Tue, 6 Sep 2011 15:03:52 +0000
(17:03 +0200)
lib/url.js
patch
|
blob
|
history
diff --git
a/lib/url.js
b/lib/url.js
index
18cddad
..
fdf434c
100644
(file)
--- 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'],