From 053bfce73949db2f275312f40487a949ea2a43fd Mon Sep 17 00:00:00 2001 From: cortadocodes Date: Mon, 3 May 2021 16:29:00 +0100 Subject: [PATCH 1/2] IMP: Allow tags to contain capitals and forward slashes --- octue/resources/tag.py | 2 +- tests/mixins/test_taggable.py | 11 ----------- tests/resources/test_tag.py | 12 ++++++++++++ 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/octue/resources/tag.py b/octue/resources/tag.py index b3657c990..a6cf9464d 100644 --- a/octue/resources/tag.py +++ b/octue/resources/tag.py @@ -8,7 +8,7 @@ from octue.utils.encoders import OctueJSONEncoder -TAG_PATTERN = re.compile(r"^$|^[a-z0-9][a-z0-9:\-]*(? Date: Mon, 3 May 2021 17:31:24 +0100 Subject: [PATCH 2/2] FIX: Disallow slashes at start or end of tag --- octue/resources/tag.py | 6 +++--- tests/resources/test_tag.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/octue/resources/tag.py b/octue/resources/tag.py index a6cf9464d..3c0dfee3c 100644 --- a/octue/resources/tag.py +++ b/octue/resources/tag.py @@ -8,12 +8,12 @@ from octue.utils.encoders import OctueJSONEncoder -TAG_PATTERN = re.compile(r"^$|^[A-Za-z0-9/][A-Za-z0-9:\-/]*(?