git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
823eeca
)
Fixes #7653. Changes regexp to detect local protocol so that it will accept any proto...
author
jaubourg
<j@ubourg.net>
Thu, 3 Feb 2011 04:19:15 +0000
(
05:19
+0100)
committer
jaubourg
<j@ubourg.net>
Thu, 3 Feb 2011 04:19:15 +0000
(
05:19
+0100)
src/ajax.js
patch
|
blob
|
history
diff --git
a/src/ajax.js
b/src/ajax.js
index
08bd9d1
..
4b3ab76
100644
(file)
--- 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,
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 = /\?/,
rnoContent = /^(?:GET|HEAD)$/,
rprotocol = /^\/\//,
rquery = /\?/,