X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fajax.js;h=4714afdae1c43138e31174585288ed27ad5130a6;hb=5c2d70979c15bbda5c90e1634abe11d8c350abcb;hp=6414e8c2990e8e9d07a4cfce056a1b896c1b2522;hpb=5b38439011799ae53156d137305d9440e0cddb0a;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index 6414e8c..4714afd 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -19,7 +19,7 @@ var r20 = /%20/g, rucHeadersFunc = function( _, $1, $2 ) { return $1 + $2.toUpperCase(); }, - rurl = /^([\w\+\.\-]+:)\/\/([^\/?#:]*)(?::(\d+))?/, + rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?|\/[^\/])/, // Keep a copy of the old load method _load = jQuery.fn.load,