Skip to content
Permalink
Browse files

Fixes #7653. Changes regexp to detect local protocol so that it will …

…accept any protocol finishing by -extension.
  • Loading branch information...
jaubourg committed Feb 3, 2011
1 parent 823eeca commit 50e950a96e0fae23a1ae418951a298e2949ff351
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/ajax.js
@@ -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 = /\?/,

0 comments on commit 50e950a

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.