aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax.js
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2011-02-03 17:17:56 +0100
committerjaubourg <j@ubourg.net>2011-02-03 17:17:56 +0100
commit0736db64a21d961263161c2392dc6a0161bd4e86 (patch)
treecd26fa33823c031fb3a1e39e8b286759d5e76fa0 /src/ajax.js
parentee22a59129e082a2bb9f5bc0b085191ab6faafc8 (diff)
downloadjquery-0736db64a21d961263161c2392dc6a0161bd4e86.tar.gz
jquery-0736db64a21d961263161c2392dc6a0161bd4e86.zip
Adds support for more complex protocol by having the url regexp closer to rfc1738.
Diffstat (limited to 'src/ajax.js')
-rw-r--r--src/ajax.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js
index 2c61cf276..ce27d2de2 100644
--- 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,