strip mailto: prefix

This commit is contained in:
sneurlax 2023-03-07 14:55:22 -06:00
parent e98ad2971a
commit e4a9895120
2 changed files with 8 additions and 0 deletions

View file

@ -1785,5 +1785,9 @@ String formatAddress(String epicAddress) {
epicAddress = epicAddress.replaceAll("http://", "");
epicAddress = epicAddress.replaceAll("https://", "");
}
// strip mailto: prefix
if (epicAddress.startsWith("mailto:")) {
epicAddress = epicAddress.replaceAll("mailto:", "");
}
return epicAddress;
}

View file

@ -1353,5 +1353,9 @@ String formatAddress(String epicAddress) {
epicAddress = epicAddress.replaceAll("http://", "");
epicAddress = epicAddress.replaceAll("https://", "");
}
// strip mailto: prefix
if (epicAddress.startsWith("mailto:")) {
epicAddress = epicAddress.replaceAll("mailto:", "");
}
return epicAddress;
}