From 17ac484eae452cfa460f43590d65923a917abb37 Mon Sep 17 00:00:00 2001 From: dsc Date: Sun, 20 Mar 2022 10:07:24 +0200 Subject: [PATCH] Fix address submission --- yellow/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yellow/routes.py b/yellow/routes.py index 57325b0..d8a601b 100644 --- a/yellow/routes.py +++ b/yellow/routes.py @@ -36,7 +36,7 @@ async def dashboard(): async def dashboard_address_post(): form = await request.form address = form.get('address') - if not bool(re.match(r'^(WW)\\d[0-9A-Za-z]{94}$', address)): + if len(address) != 97: raise Exception("Please submit a WOW address") # update user