Refactor Addressbook

This commit is contained in:
Aditya Kulkarni
2018-11-21 15:00:56 -08:00
parent 0fa44f2889
commit 79520f41c5
6 changed files with 105 additions and 28 deletions

View File

@@ -205,3 +205,7 @@ bool Settings::isValidAddress(QString addr) {
return zcexp.exactMatch(addr) || texp.exactMatch(addr) ||
ztsexp.exactMatch(addr) || zsexp.exactMatch(addr);
}
QString Settings::addressFromAddressLabel(const QString& lblAddr) {
return lblAddr.trimmed().split("/").last();
}