mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2026-04-10 06:46:17 +00:00
fix: regex invalid escape sequence
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user