Mercurial > libervia-backend
changeset 2560:6a31c67c562f
plugin merge-request mercurial: accept space and period for import name sanitization
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 02 Apr 2018 08:49:20 +0200 |
parents | 1362cabad225 |
children | bd30dc3ffe5a |
files | src/plugins/plugin_merge_req_mercurial.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/plugin_merge_req_mercurial.py Mon Apr 02 08:45:08 2018 +0200 +++ b/src/plugins/plugin_merge_req_mercurial.py Mon Apr 02 08:49:20 2018 +0200 @@ -131,7 +131,7 @@ 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)