Skip to content
Permalink
Browse files

Removing the second capture group. After the changes suggested by Jef…

  • Loading branch information
unknown unknown
unknown authored and unknown committed Sep 24, 2010
1 parent 5c05504 commit a088751a1b2c5761dab8de9d7da8602defb45b11
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 : "");

0 comments on commit a088751

Please sign in to comment.
You can’t perform that action at this time.