plugin merge-request mercurial: accept space and period for import name sanitization
This commit is contained in:
parent
b1b765fcc0
commit
4f1fb28a63
1 changed files with 1 additions and 1 deletions
|
|
@ -131,7 +131,7 @@ class MercurialHandler(object):
|
|||
parsed_data = self.parse(data)
|
||||
try:
|
||||
parsed_name = parsed_data[0][u'commit_msg'].split(u'\n')[0]
|
||||
parsed_name = re.sub(ur'[^\w-]', u'', parsed_name, flags=re.UNICODE)[:20]
|
||||
parsed_name = re.sub(ur'[^\w -.]', u'', parsed_name, flags=re.UNICODE)[:20]
|
||||
except Exception:
|
||||
parsed_name = u''
|
||||
name = u'mr_{item_id}_{parsed_name}'.format(item_id=item_id, parsed_name=parsed_name)
|
||||
|
|
|
|||
Loading…
Reference in a new issue