Skip to content

Commit

Permalink
TxUtils: allow @ in OpenAlias domain
Browse files Browse the repository at this point in the history
  • Loading branch information
selsta committed Apr 25, 2024
1 parent f0b1b8c commit 1878338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/TxUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1878338

Please sign in to comment.