mirror of
https://git.zx2c4.com/cgit
synced 2025-06-24 18:58:39 +02:00
global: replace hard coded hash length
With sha1 we had a guaranteed length of 40 hex chars. This changes now that we have to support sha256 with 64 hex chars... Support both. Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
parent
779631c6dc
commit
a4de0e810b
4 changed files with 5 additions and 6 deletions
|
@ -19,7 +19,7 @@ regex=''
|
|||
|
||||
# This expression generates links to commits referenced by their SHA1.
|
||||
regex=$regex'
|
||||
s|\b([0-9a-fA-F]{7,40})\b|<a href="./?id=\1">\1</a>|g'
|
||||
s|\b([0-9a-fA-F]{7,64})\b|<a href="./?id=\1">\1</a>|g'
|
||||
|
||||
# This expression generates links to a fictional bugtracker.
|
||||
regex=$regex'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue