]> source.dussan.org Git - jquery.git/commitdiff
Strip off filename and query string for JSONP Remote test.
authorjeresig <jeresig@gmail.com>
Tue, 23 Mar 2010 20:22:09 +0000 (16:22 -0400)
committerwycats <wycats@gmail.com>
Sun, 20 Jun 2010 05:29:47 +0000 (22:29 -0700)
test/unit/ajax.js

index ce257f88a84a43e2114c340a5c3cbfefe082fd2b..135e0541a8ca726039ae3a12ca9e81e1978d5001 100644 (file)
@@ -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();