diff options
author | Alban Gruin | 2017-05-12 11:07:17 +0200 |
---|---|---|
committer | Alban Gruin | 2017-05-12 11:07:17 +0200 |
commit | d412a58b8fc7478846ae4ed9d7a15257f0aacd79 (patch) | |
tree | 5e6109c6ffc77509b19724cbe46d2748ccfbf4b8 | |
parent | 21b0f53454e60c672f501389f225bb76d062e33c (diff) |
Si la regex n'arrive pas à parser le groupe, alors la mention correspond au nom du groupe
-rw-r--r-- | utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |