mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-10 20:54:33 +00:00
strip / suffix
This commit is contained in:
parent
e4a9895120
commit
60ab907c28
2 changed files with 8 additions and 0 deletions
|
@ -1789,5 +1789,9 @@ String formatAddress(String epicAddress) {
|
||||||
if (epicAddress.startsWith("mailto:")) {
|
if (epicAddress.startsWith("mailto:")) {
|
||||||
epicAddress = epicAddress.replaceAll("mailto:", "");
|
epicAddress = epicAddress.replaceAll("mailto:", "");
|
||||||
}
|
}
|
||||||
|
// strip / suffix if the address contains an @ symbol (and is thus an epicbox address)
|
||||||
|
if (epicAddress.endsWith("/") && epicAddress.contains("@")) {
|
||||||
|
epicAddress = epicAddress.substring(0, epicAddress.length - 1);
|
||||||
|
}
|
||||||
return epicAddress;
|
return epicAddress;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1357,5 +1357,9 @@ String formatAddress(String epicAddress) {
|
||||||
if (epicAddress.startsWith("mailto:")) {
|
if (epicAddress.startsWith("mailto:")) {
|
||||||
epicAddress = epicAddress.replaceAll("mailto:", "");
|
epicAddress = epicAddress.replaceAll("mailto:", "");
|
||||||
}
|
}
|
||||||
|
// strip / suffix if the address contains an @ symbol (and is thus an epicbox address)
|
||||||
|
if (epicAddress.endsWith("/") && epicAddress.contains("@")) {
|
||||||
|
epicAddress = epicAddress.substring(0, epicAddress.length - 1);
|
||||||
|
}
|
||||||
return epicAddress;
|
return epicAddress;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue