From 7caa52da36a93fae703e3618632b3bf0215bdd57 Mon Sep 17 00:00:00 2001 From: Samuel Walters-Nevet Date: Wed, 2 Sep 2026 20:13:57 -0400 Subject: [PATCH] Fix regex syntax warning Python versions 3.13+ complain about it. >SyntaxWarning: "\d" is an invalid escape sequence. --- anidbcli/operations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anidbcli/operations.py b/anidbcli/operations.py index 717361b..30e0317 100644 --- a/anidbcli/operations.py +++ b/anidbcli/operations.py @@ -240,7 +240,7 @@ def parse_data(raw_data): return res def construct_helper_tags(fileinfo): - year_list = re.findall('(\d{4})', fileinfo["year"]) + year_list = re.findall(r'(\d{4})', fileinfo["year"]) if (len(year_list) > 0): fileinfo["year_start"] = year_list[0] fileinfo["year_end"] = year_list[-1]