X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fajax.js;h=135e0541a8ca726039ae3a12ca9e81e1978d5001;hb=0fbac16dbe77b6bf846b43d3ef3bd75c374e2628;hp=ce257f88a84a43e2114c340a5c3cbfefe082fd2b;hpb=2301e2a1c3418b4588653e26f9171577e0077aec;p=jquery.git diff --git a/test/unit/ajax.js b/test/unit/ajax.js index ce257f8..135e054 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -774,7 +774,7 @@ test("jQuery.ajax() - JSONP, Remote", function() { var count = 0; function plus(){ if ( ++count == 4 ) start(); } - var base = window.location.href.replace(/\?.*$/, ""); + var base = window.location.href.replace(/[^\/]*$/, ""); stop();