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
(from parent 1:
ee22a59
)
Adds support for more complex protocol by having the url regexp closer to rfc1738.
author
jaubourg
<j@ubourg.net>
Thu, 3 Feb 2011 16:17:56 +0000
(17:17 +0100)
committer
jaubourg
<j@ubourg.net>
Thu, 3 Feb 2011 16:17:56 +0000
(17:17 +0100)
src/ajax.js
patch
|
blob
|
history
diff --git
a/src/ajax.js
b/src/ajax.js
index
2c61cf2
..
ce27d2d
100644
(file)
--- a/
src/ajax.js
+++ b/
src/ajax.js
@@
-15,7
+15,7
@@
var r20 = /%20/g,
rselectTextarea = /^(?:select|textarea)/i,
rspacesAjax = /\s+/,
rts = /([?&])_=[^&]*/,
- rurl = /^(\w+:)\/\/([^\/?#:]*)(?::(\d+))?/,
+ rurl = /^([\w\+\.\-]+:)\/\/([^\/?#:]*)(?::(\d+))?/,
// Keep a copy of the old load method
_load = jQuery.fn.load,