mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 03:49:22 +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:")) {
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -1357,5 +1357,9 @@ String formatAddress(String epicAddress) {
|
|||
if (epicAddress.startsWith("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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue