Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit d055294

Browse files
mmaleckibnoordhuis
authored andcommitted
url: add plus sign to protocol pattern
1 parent 56efe9c commit d055294

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/url.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ exports.format = urlFormat;
3030

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

0 commit comments

Comments
 (0)