Merge pull request #608 from maskaravivek/minorFix

Fixes #587: Remove trailing carriage return
This commit is contained in:
neslihanturan 2017-05-16 15:39:56 +03:00 committed by GitHub
commit 1a1fc143c9

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);
}