mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Merge pull request #608 from maskaravivek/minorFix
Fixes #587: Remove trailing carriage return
This commit is contained in:
commit
1a1fc143c9
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue