From e8bed3b07b2c3035cebe9e3c22b430d87d7c205e Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Mon, 25 Nov 2024 15:02:28 +0300 Subject: [PATCH] update the alias regex to be alphanumeric --- common/recipient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/recipient.go b/common/recipient.go index 708d405..f463a32 100644 --- a/common/recipient.go +++ b/common/recipient.go @@ -11,7 +11,7 @@ import ( const ( phoneRegex = `^(?:\+254|254|0)?((?:7[0-9]{8})|(?:1[01][0-9]{7}))$` addressRegex = `^0x[a-fA-F0-9]{40}$` - aliasRegex = `^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+$` + aliasRegex = `^[a-zA-Z0-9]+$` ) // IsValidPhoneNumber checks if the given number is a valid phone number