# HG changeset patch # User Mads Kiilerich # Date 2015-01-06 00:54:36 # Node ID d32fe5348b5ed0e16e5ca0894a8040d8c06acb8d # Parent 2a6c61a2e84e3196a7e8b47ffc0dd3b3f14d58f6 urlify: markup of hashes in () diff --git a/kallithea/lib/helpers.py b/kallithea/lib/helpers.py --- a/kallithea/lib/helpers.py +++ b/kallithea/lib/helpers.py @@ -1281,7 +1281,7 @@ def urlify_changesets(text_, repository) 'rev': rev, } - return re.sub(r'(?:^|(?<=\s))([0-9a-fA-F]{12,40})(?=$|\s|[.,:])', url_func, text_) + return re.sub(r'(?:^|(?<=[\s(),]))([0-9a-fA-F]{12,40})(?=$|\s|[.,:()])', url_func, text_) def urlify_commit(text_, repository, link_=None):