History: Combined cleanup regular expression

This commit is contained in:
Marius Hein 2015-02-16 15:38:16 +01:00
parent c135d3243a
commit 6cc428d0e1

View File

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