From af682c790cbe76154a8f8736445e907ee8e0583e Mon Sep 17 00:00:00 2001 From: German Service Network Date: Sat, 4 Oct 2025 08:11:02 +0200 Subject: [PATCH] Fix SyntaxWarning re.compile --- raspbmirror.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raspbmirror.py b/raspbmirror.py index 2a8f8ff..ced804f 100644 --- a/raspbmirror.py +++ b/raspbmirror.py @@ -154,7 +154,7 @@ def addtofilequeue(filequeue,filename): #regex used for filename sanity checks -pfnallowed = re.compile(b'[a-z0-9A-Z\-_:\+~\.]+',re.ASCII) +pfnallowed = re.compile(b'[a-zA-Z0-9._:+~-]+', re.ASCII) shaallowed = re.compile(b'[a-z0-9]+',re.ASCII) def ensuresafepath(path): -- 2.43.0