fix: regex invalid escape sequence
Some checks failed
Docker Build and Push / docker_build (push) Has been cancelled
Docker Build and Push / docker_scan (push) Has been cancelled

This commit is contained in:
DaanSelen
2026-03-02 10:38:16 +01:00
parent ba4ac7c1ec
commit b9c271ff4c

View File

@@ -932,8 +932,8 @@ class WireguardConfiguration:
files.sort(key=lambda x: x[1], reverse=True)
for f, ct in files:
if RegexMatch(f"^({self.Name})_(\d+)\\.(conf)$", f):
s = re.search(f"^({self.Name})_(\d+)\\.(conf)$", f)
if RegexMatch(rf"^({self.Name})_(\d+)\\.(conf)$", f):
s = re.search(rf"^({self.Name})_(\d+)\\.(conf)$", f)
date = s.group(2)
d = {
"filename": f,