Fixes #587: Remove trailing carriage return

This commit is contained in:
maskara 2017-05-16 13:11:54 +02:00
parent f1785114ac
commit 583a47e2b4

View file

@ -60,7 +60,10 @@ public class Sitelinks implements Parcelable {
@Nullable
private Uri sanitiseString(String stringUrl) {
stringUrl = stringUrl.replace("<", "").replace(">", "");
stringUrl = stringUrl
.replaceAll("<", "")
.replaceAll(">", "")
.replaceAll("\n", "");
if (!Utils.isNullOrWhiteSpace(stringUrl) && stringUrl != null) {
return Uri.parse(stringUrl);
}