aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax.js
diff options
context:
space:
mode:
authorunknown <Igen005@.upcorp.ad.uprr.com>2010-09-24 09:37:03 -0500
committerunknown <Igen005@.upcorp.ad.uprr.com>2010-09-24 09:37:03 -0500
commita088751a1b2c5761dab8de9d7da8602defb45b11 (patch)
treeaca07926fb3e6a56f2ca878c189e4d81773b4c08 /src/ajax.js
parent5c055040d3685b2e01ee1ad06e403a3856f4c8b0 (diff)
downloadjquery-a088751a1b2c5761dab8de9d7da8602defb45b11.tar.gz
jquery-a088751a1b2c5761dab8de9d7da8602defb45b11.zip
Removing the second capture group. After the changes suggested by Jeff Roberson, the second capture group is no longer needed. See
http://stackoverflow.com/questions/3771105/can-someone-tell-me-the-purpose-of-the-second-capture-group-in-the-jquery-rts-reg
Diffstat (limited to 'src/ajax.js')
-rw-r--r--src/ajax.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ajax.js b/src/ajax.js
index 9886fd70f..eebb81b24 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -7,7 +7,7 @@ var jsc = jQuery.now(),
rbracket = /\[\]$/,
jsre = /\=\?(&|$)/,
rquery = /\?/,
- rts = /([?&])_=[^&]*(&?)/,
+ rts = /([?&])_=[^&]*/,
rurl = /^(\w+:)?\/\/([^\/?#]+)/,
r20 = /%20/g,
rhash = /#.*$/,
@@ -275,7 +275,7 @@ jQuery.extend({
var ts = jQuery.now();
// try replacing _= if it is there
- var ret = s.url.replace(rts, "$1_=" + ts + "$2");
+ var ret = s.url.replace(rts, "$1_=" + ts);
// if nothing was replaced, add timestamp to the end
s.url = ret + ((ret === s.url) ? (rquery.test(s.url) ? "&" : "?") + "_=" + ts : "");