Fixes issue #407 - improve UTM detection

This commit is contained in:
stom79 2018-04-23 15:06:35 +02:00
parent bf9cfe2815
commit 7a2c3b5646
1 changed files with 3 additions and 3 deletions

View File

@ -202,9 +202,9 @@ public class Status implements Parcelable{
public void setContent(String content) {
//Remove UTM by default
this.content = content.replaceAll("&utm_\\w+=[0-9a-zA-Z]*", "");
this.content = this.content.replaceAll("&utm_\\w+=[0-9a-zA-Z]*", "");
this.content = this.content.replaceAll("\\?utm_\\w+=[0-9a-zA-Z]*", "?");
this.content = content.replaceAll("&utm_\\w+=[0-9a-zA-Z._-]*", "");
this.content = this.content.replaceAll("&utm_\\w+=[0-9a-zA-Z._-]*", "");
this.content = this.content.replaceAll("\\?utm_\\w+=[0-9a-zA-Z._-]*", "?");
}
public Status getReblog() {