|
|
@ -276,13 +276,11 @@ QString Settings::getZboardAddr() { |
|
|
|
} |
|
|
|
|
|
|
|
bool Settings::isValidAddress(QString addr) { |
|
|
|
QRegExp zcexp("^z[a-z0-9]{94}$", Qt::CaseInsensitive); |
|
|
|
QRegExp zsexp("^z[a-z0-9]{77}$", Qt::CaseInsensitive); |
|
|
|
QRegExp ztsexp("^ztestsapling[a-z0-9]{76}", Qt::CaseInsensitive); |
|
|
|
QRegExp texp("^t[a-z0-9]{34}$", Qt::CaseInsensitive); |
|
|
|
QRegExp texp("^R[a-z0-9]{33}$", Qt::CaseInsensitive); |
|
|
|
|
|
|
|
return zcexp.exactMatch(addr) || texp.exactMatch(addr) || |
|
|
|
ztsexp.exactMatch(addr) || zsexp.exactMatch(addr); |
|
|
|
return texp.exactMatch(addr) || ztsexp.exactMatch(addr) || zsexp.exactMatch(addr); |
|
|
|
} |
|
|
|
|
|
|
|
// Get a pretty string representation of this Payment URI
|
|
|
|