Fixes #7653. Changes regexp to detect local protocol so that it will accept any protocol finishing by -extension.
This commit is contained in:
parent
823eecab90
commit
50e950a96e
1 changed files with 2 additions and 2 deletions
|
@ -6,8 +6,8 @@ var r20 = /%20/g,
|
|||
rhash = /#.*$/,
|
||||
rheaders = /^(.*?):\s*(.*?)\r?$/mg, // IE leaves an \r character at EOL
|
||||
rinput = /^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
|
||||
// #8125, #8152: local protocol detection
|
||||
rlocalProtocol = /^(file|chrome\-extension):$/,
|
||||
// #7653, #8125, #8152: local protocol detection
|
||||
rlocalProtocol = /(?:^file|\-extension):$/,
|
||||
rnoContent = /^(?:GET|HEAD)$/,
|
||||
rprotocol = /^\/\//,
|
||||
rquery = /\?/,
|
||||
|
|
Loading…
Reference in a new issue