diff --git a/releases/models.py b/releases/models.py index c5f32b3..fab3528 100644 --- a/releases/models.py +++ b/releases/models.py @@ -9,6 +9,9 @@ from django.utils import timezone RE_PACKAGE_VERSION = re.compile('((?P.*)[@])?(?P.*)') +# We don't actually parse for HEX yet (it's simply non-semver to us) but if we do we could use the following lengths: +# 12 | 16 | 20 | 32 | 40 | 64 + def is_valid_semver(full_version): try: