forked from urdt/ussd
update the alias regex to be alphanumeric
This commit is contained in:
parent
2a36b31750
commit
e8bed3b07b
@ -11,7 +11,7 @@ import (
|
|||||||
const (
|
const (
|
||||||
phoneRegex = `^(?:\+254|254|0)?((?:7[0-9]{8})|(?:1[01][0-9]{7}))$`
|
phoneRegex = `^(?:\+254|254|0)?((?:7[0-9]{8})|(?:1[01][0-9]{7}))$`
|
||||||
addressRegex = `^0x[a-fA-F0-9]{40}$`
|
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
|
// IsValidPhoneNumber checks if the given number is a valid phone number
|
||||||
|
Loading…
Reference in New Issue
Block a user