aboutsummaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorAlban Gruin2017-05-12 11:07:17 +0200
committerAlban Gruin2017-05-12 11:07:17 +0200
commitd412a58b8fc7478846ae4ed9d7a15257f0aacd79 (patch)
tree5e6109c6ffc77509b19724cbe46d2748ccfbf4b8 /utils.py
parent21b0f53454e60c672f501389f225bb76d062e33c (diff)
Si la regex n'arrive pas à parser le groupe, alors la mention correspond au nom du groupe
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.py b/utils.py
index 8e87c0f..fe6ec4c 100644
--- a/utils.py
+++ b/utils.py
@@ -63,7 +63,7 @@ def parse_group(name):
group_regex = re.compile("^([\w ]+?)(\s*\-\s*(((CM)(\w))|((TD)(\w)(\d))|((TP)(\w)(\d)(\d))))?$")
search = group_regex.search(name)
if search is None:
- return None, None, None, None
+ return name, None, None, None
parts = search.groups(0)
if parts[1] == 0: