mirror of
https://github.com/monero-project/monero-gui
synced 2025-02-20 11:42:09 +01:00
TxUtils: allow @ in OpenAlias domain
This commit is contained in:
parent
f0b1b8cd08
commit
1878338a44
@ -70,7 +70,7 @@ function checkSignature(signature) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isValidOpenAliasAddress(address) {
|
function isValidOpenAliasAddress(address) {
|
||||||
var regex = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)+$/; // Basic domain structure
|
var regex = /^[A-Za-z0-9-@]+(\.[A-Za-z0-9-]+)+$/; // Basic domain structure, allow email-like address
|
||||||
|
|
||||||
if (!regex.test(address)) {
|
if (!regex.test(address)) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user