increasing LNAddress length limit
This commit is contained in:
parent
17556ff1b6
commit
a8dc4ac5df
1 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@ import re
|
||||||
|
|
||||||
async def check_lnaddress_format(username: str) -> bool:
|
async def check_lnaddress_format(username: str) -> bool:
|
||||||
# check username complies with lnaddress specification
|
# check username complies with lnaddress specification
|
||||||
if not re.match("^[a-z0-9-_.]{3,15}$", username):
|
if not re.match("^[a-z0-9-_.]{3,64}$", username):
|
||||||
assert False, "Only letters a-z0-9-_. allowed, min 3 and max 15 characters!"
|
assert False, "Only letters a-z0-9-_. allowed, min 3 and max 64 characters!"
|
||||||
return
|
return
|
||||||
return True
|
return True
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue