aboutsummaryrefslogtreecommitdiff
path: root/components/InputMulti.qml
diff options
context:
space:
mode:
authormmbyday <mmbyday@protonmail.com>2018-12-19 13:37:52 -0800
committermmbyday <mmbyday@protonmail.com>2018-12-20 12:24:55 -0800
commit67787421e1330220c1729c2e6f2de5f7216bdc77 (patch)
tree6f44083681a6b9a0aa9dc508c70feb4fac61ed8c /components/InputMulti.qml
parent7c0a557e627c1c6dee0564d1301034498172885d (diff)
downloadmonzero-gui-67787421e1330220c1729c2e6f2de5f7216bdc77.tar.gz
monzero-gui-67787421e1330220c1729c2e6f2de5f7216bdc77.tar.xz
monzero-gui-67787421e1330220c1729c2e6f2de5f7216bdc77.zip
openalias: handle address validation correctly
Diffstat (limited to 'components/InputMulti.qml')
-rw-r--r--components/InputMulti.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/InputMulti.qml b/components/InputMulti.qml
index f7706d75..66ac1e6f 100644
--- a/components/InputMulti.qml
+++ b/components/InputMulti.qml
@@ -55,7 +55,7 @@ TextArea {
if(addressValidation){
// js replacement for `RegExpValidator { regExp: /[0-9A-Fa-f]{95}/g }`
textArea.text = textArea.text.replace(/[^a-z0-9.@]/gi,'');
- var address_ok = TxUtils.checkAddress(textArea.text, appWindow.persistentSettings.nettype);
+ var address_ok = TxUtils.checkAddress(textArea.text, appWindow.persistentSettings.nettype) || TxUtils.isValidOpenAliasAddress(textArea.text);
if(!address_ok) error = true;
else error = false;
TextArea.cursorPosition = textArea.text.length;