From e4a989512065209e01a52cd97876aa3f6abcfc7d Mon Sep 17 00:00:00 2001 From: sneurlax Date: Tue, 7 Mar 2023 14:55:22 -0600 Subject: [PATCH] strip mailto: prefix --- lib/pages/send_view/send_view.dart | 4 ++++ .../my_stack_view/wallet_view/sub_widgets/desktop_send.dart | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/lib/pages/send_view/send_view.dart b/lib/pages/send_view/send_view.dart index b8bcc1f6d..905bac258 100644 --- a/lib/pages/send_view/send_view.dart +++ b/lib/pages/send_view/send_view.dart @@ -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; } diff --git a/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_send.dart b/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_send.dart index 588af3fd0..36c1de454 100644 --- a/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_send.dart +++ b/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_send.dart @@ -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; }