]> source.dussan.org Git - jquery.git/commitdiff
Adds support for more complex protocol by having the url regexp closer to rfc1738.
authorjaubourg <j@ubourg.net>
Thu, 3 Feb 2011 16:17:56 +0000 (17:17 +0100)
committerjaubourg <j@ubourg.net>
Thu, 3 Feb 2011 16:17:56 +0000 (17:17 +0100)
src/ajax.js

index 2c61cf27607551e552a767c56b4587f928879d42..ce27d2de2ea2593a2ae0e1998cb3fdec2f5904d1 100644 (file)
@@ -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,