From a8dc4ac5df91904759b584d5a2307f0a1ad23509 Mon Sep 17 00:00:00 2001 From: ToniValac Date: Fri, 23 Feb 2024 08:49:46 +0100 Subject: [PATCH] increasing LNAddress length limit --- services.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services.py b/services.py index 641ffce..493810d 100644 --- a/services.py +++ b/services.py @@ -3,7 +3,7 @@ import re async def check_lnaddress_format(username: str) -> bool: # check username complies with lnaddress specification - if not re.match("^[a-z0-9-_.]{3,15}$", username): - assert False, "Only letters a-z0-9-_. allowed, min 3 and max 15 characters!" + if not re.match("^[a-z0-9-_.]{3,64}$", username): + assert False, "Only letters a-z0-9-_. allowed, min 3 and max 64 characters!" return return True