From bbdd2cc58f8f122f4ffd97114f555155c18808e3 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 12 Dec 2024 17:07:14 +0000 Subject: [PATCH] fixing deprecated syntax --- core/views/wallets_edit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/views/wallets_edit.py b/core/views/wallets_edit.py index b7b03b6..ea2cf80 100644 --- a/core/views/wallets_edit.py +++ b/core/views/wallets_edit.py @@ -379,7 +379,7 @@ def walletedit(request, path=None): # if nonumeric wpath name for example return (oldwallet(request, path), None) - if not re.match("(19|20)\d\d[:#]\d\d\d?", wpath): + if not re.match("(19|20)[0-9][0-9][:#]\d{2,3}", wpath): return (None, get_next_empty() ) ymin, ymax = YEAR_RANGE