History: Combined cleanup regular expression

This commit is contained in:
Marius Hein 2015-02-16 15:38:16 +01:00
parent c135d3243a
commit 6cc428d0e1
1 changed files with 2 additions and 2 deletions

View File

@ -105,8 +105,8 @@
},
push: function (url) {
url = url.replace(/_render=[a-z0-9]+&/, '').replace(/&_render=[a-z0-9]+/, '').replace(/\?_render=[a-z0-9]+$/, '');
url = url.replace(/_reload=[a-z0-9]+&/, '').replace(/&_reload=[a-z0-9]+/, '').replace(/\?_reload=[a-z0-9]+$/, '');
url = url.replace(/[\?&]?_(render|reload)=[a-z0-9]+/g, '');
console.log("URL:", url);
if (this.lastPushUrl === url) {
return;
}