TxUtils: allow @ in OpenAlias domain

This commit is contained in:
selsta 2024-04-25 16:31:22 +02:00
parent f0b1b8cd08
commit 1878338a44
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E

View file

@ -70,7 +70,7 @@ function checkSignature(signature) {
}
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)) {
return false;