aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2011-02-03 05:19:15 +0100
committerjaubourg <j@ubourg.net>2011-02-03 05:19:15 +0100
commit50e950a96e0fae23a1ae418951a298e2949ff351 (patch)
tree703571ea78ecbfba6bc9a03781533715924e144f
parent823eecab9073b43a283a2500e9e43c3a06cc2495 (diff)
downloadjquery-50e950a96e0fae23a1ae418951a298e2949ff351.tar.gz
jquery-50e950a96e0fae23a1ae418951a298e2949ff351.zip
Fixes #7653. Changes regexp to detect local protocol so that it will accept any protocol finishing by -extension.
-rw-r--r--src/ajax.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ajax.js b/src/ajax.js
index 08bd9d114..4b3ab7687 100644
--- a/src/ajax.js
+++ b/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 = /\?/,