comparison hgext/highlight/highlight.py @ 40934:d3e688b9ef2e

templatefuncs: add regexp search() function that extracts substring This can be used to extract an issue number from a commit message, for example: {search(r'\(issue([0-9]*)\)', desc) % '{1}'}
author Yuya Nishihara <yuya@tcha.org>
date Wed, 12 Dec 2018 22:19:57 +0900
parents 23dc901cdf13
children a7abc6081bc5
comparison
equal deleted inserted replaced
40933:18513d6ef7d4 40934:d3e688b9ef2e