Skip to content

Commit 565b4cc

Browse files
committed
fix: adjust regex
Closes #2724
1 parent 86994c0 commit 565b4cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

downloads/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def is_version_at_least_3_9(self):
148148

149149
def clean(self):
150150
super().clean()
151-
if not re.match(r'^Python\s[\d.]+%', self.name):
151+
if not re.match(r'^Python\s[\d.]+$', self.name):
152152
raise ValidationError({
153153
"name": "Release name must be in the format 'Python X.Y.Z' (e.g., 'Python 3.14.0')"
154154
})

0 commit comments

Comments
 (0)