From 54102f0d90412ab116d666be60e12276ae5be286 Mon Sep 17 00:00:00 2001 From: Michal Kunc Date: Sat, 11 Feb 2023 19:10:47 +0100 Subject: [PATCH] Fix failing test --- watchlist/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watchlist/models.py b/watchlist/models.py index 0bc86fd..5a984c6 100644 --- a/watchlist/models.py +++ b/watchlist/models.py @@ -6,7 +6,7 @@ from django.contrib.auth.models import User from django.contrib import admin IMDB_ID_RE = re.compile(r'(?Ptt\d{7,})') -CSFD_ID_RE = re.compile(r'(?P\d+)') +CSFD_ID_RE = re.compile(r'(?P[1-9]\d*)') def validate_imdb_id(v: str) -> bool: return IMDB_ID_RE.match(v)