From 31cfe62ed4884f0f7eff399375bf6e748738ef71 Mon Sep 17 00:00:00 2001 From: jeresig Date: Tue, 23 Mar 2010 16:22:09 -0400 Subject: [PATCH] Strip off filename and query string for JSONP Remote test. --- test/unit/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 1.7.10.4