Merge pull request #3978

9e6f116 TxUtils: don't show resolve for float (reemuru)
This commit is contained in:
luigi1111 2022-08-10 12:18:08 -05:00
commit 80830584d1
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -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
}