diff options
author | jeresig <jeresig@gmail.com> | 2010-03-23 16:22:09 -0400 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-03-23 16:22:09 -0400 |
commit | 0fbac16dbe77b6bf846b43d3ef3bd75c374e2628 (patch) | |
tree | 16f3db461deb00e1ad770c664e38fc8624cfd2c9 /test/unit/ajax.js | |
parent | 2301e2a1c3418b4588653e26f9171577e0077aec (diff) | |
download | jquery-0fbac16dbe77b6bf846b43d3ef3bd75c374e2628.tar.gz jquery-0fbac16dbe77b6bf846b43d3ef3bd75c374e2628.zip |
Strip off filename and query string for JSONP Remote test.
Diffstat (limited to 'test/unit/ajax.js')
-rw-r--r-- | test/unit/ajax.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js index ce257f88a..135e0541a 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(); |