aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2022-08-10 12:18:08 -0500
committerluigi1111 <luigi1111w@gmail.com>2022-08-10 12:18:08 -0500
commit80830584d1640ac48d2ef335a79e22f09fd16ef9 (patch)
tree5daf45c4383a5657a28ecf359f34add5577e26d9 /js
parentae21f790402bb93ad5c4fa7ffe4769e62443b578 (diff)
parent9e6f116bc978eb3149dca01800f0f42323bb7b69 (diff)
downloadmonzero-gui-80830584d1640ac48d2ef335a79e22f09fd16ef9.tar.gz
monzero-gui-80830584d1640ac48d2ef335a79e22f09fd16ef9.tar.xz
monzero-gui-80830584d1640ac48d2ef335a79e22f09fd16ef9.zip
Merge pull request #3978
9e6f116 TxUtils: don't show resolve for float (reemuru)
Diffstat (limited to 'js')
-rw-r--r--js/TxUtils.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/js/TxUtils.js b/js/TxUtils.js
index de79b625..49b0c34e 100644
--- a/js/TxUtils.js
+++ b/js/TxUtils.js
@@ -71,9 +71,8 @@ function checkSignature(signature) {
function isValidOpenAliasAddress(address) {
address = address.trim()
- var dot = address.indexOf('.')
- if (dot < 0)
- return false
// we can get an awful lot of valid domains, including non ASCII chars... accept anything
- return true
+ // there should be something after the .
+ // make sure it is not some kind of floating number
+ return address.length > 2 && isNaN(parseFloat(address)) && address.indexOf('.') >= 0
}