url: remove unused global variable
This commit is contained in:
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,
|
||||||
'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.
|
// protocols that always contain a // bit.
|
||||||
slashedProtocol = {
|
slashedProtocol = {
|
||||||
'http': true,
|
'http': true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user