From 0736db64a21d961263161c2392dc6a0161bd4e86 Mon Sep 17 00:00:00 2001 From: jaubourg Date: Thu, 3 Feb 2011 17:17:56 +0100 Subject: Adds support for more complex protocol by having the url regexp closer to rfc1738. --- src/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ajax.js') 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, -- cgit v1.2.3