Adds support for more complex protocol by having the url regexp closer to rfc1738.

This commit is contained in:
jaubourg 2011-02-03 17:17:56 +01:00
parent ee22a59129
commit 0736db64a2

View file

@ -15,7 +15,7 @@ var r20 = /%20/g,
rselectTextarea = /^(?:select|textarea)/i, rselectTextarea = /^(?:select|textarea)/i,
rspacesAjax = /\s+/, rspacesAjax = /\s+/,
rts = /([?&])_=[^&]*/, rts = /([?&])_=[^&]*/,
rurl = /^(\w+:)\/\/([^\/?#:]*)(?::(\d+))?/, rurl = /^([\w\+\.\-]+:)\/\/([^\/?#:]*)(?::(\d+))?/,
// Keep a copy of the old load method // Keep a copy of the old load method
_load = jQuery.fn.load, _load = jQuery.fn.load,