mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 21:33:53 +01:00
Fixes #587: Remove trailing carriage return
This commit is contained in:
parent
f1785114ac
commit
583a47e2b4
1 changed files with 4 additions and 1 deletions
|
|
@ -60,7 +60,10 @@ public class Sitelinks implements Parcelable {
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
private Uri sanitiseString(String stringUrl) {
|
private Uri sanitiseString(String stringUrl) {
|
||||||
stringUrl = stringUrl.replace("<", "").replace(">", "");
|
stringUrl = stringUrl
|
||||||
|
.replaceAll("<", "")
|
||||||
|
.replaceAll(">", "")
|
||||||
|
.replaceAll("\n", "");
|
||||||
if (!Utils.isNullOrWhiteSpace(stringUrl) && stringUrl != null) {
|
if (!Utils.isNullOrWhiteSpace(stringUrl) && stringUrl != null) {
|
||||||
return Uri.parse(stringUrl);
|
return Uri.parse(stringUrl);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue