plugin merge request (mercurial): escape colons in import name
This commit is contained in:
parent
ea9583aea0
commit
e9ca46fba3
1 changed files with 1 additions and 1 deletions
|
|
@ -132,7 +132,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)[:40]
|
||||
parsed_name = re.sub(ur'[^\w -.:]', u'', parsed_name, flags=re.UNICODE)[:40]
|
||||
except Exception:
|
||||
parsed_name = u''
|
||||
name = u'mr_{item_id}_{parsed_name}'.format(item_id=item_id,
|
||||
|
|
|
|||
Loading…
Reference in a new issue