Mercurial > kallithea
changeset 4725:d32fe5348b5e
urlify: markup of hashes in ()
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 06 Jan 2015 00:54:36 +0100 |
parents | 2a6c61a2e84e |
children | f1e0b8aa634b |
files | kallithea/lib/helpers.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/helpers.py Tue Jan 06 00:54:36 2015 +0100 +++ b/kallithea/lib/helpers.py Tue Jan 06 00:54:36 2015 +0100 @@ -1281,7 +1281,7 @@ '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):