mirror of https://github.com/nodejs/node.git
url: remove unused global variable
parent
f28f67cf75
commit
414a909d01
12
lib/url.js
12
lib/url.js
|
@ -79,18 +79,6 @@ var protocolPattern = /^([a-z0-9.+-]+:)/i,
|
|||
'javascript': true,
|
||||
'javascript:': true
|
||||
},
|
||||
// protocols that always have a path component.
|
||||
pathedProtocol = {
|
||||
'http': true,
|
||||
'https': true,
|
||||
'ftp': true,
|
||||
'gopher': true,
|
||||
'file': true,
|
||||
'http:': true,
|
||||
'ftp:': true,
|
||||
'gopher:': true,
|
||||
'file:': true
|
||||
},
|
||||
// protocols that always contain a // bit.
|
||||
slashedProtocol = {
|
||||
'http': true,
|
||||
|
|
Loading…
Reference in New Issue