From 64f40d93ea1f1456a6788798b9e9c4813156d86e Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Tue, 6 Aug 2024 23:57:07 +0000 Subject: [PATCH] chore: Limit commit hash length to seven characters in website --- assets/chezmoi.io/docs/reference/release-history.md.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/chezmoi.io/docs/reference/release-history.md.tmpl b/assets/chezmoi.io/docs/reference/release-history.md.tmpl index 235e6cd487d..e3fd0639f5d 100644 --- a/assets/chezmoi.io/docs/reference/release-history.md.tmpl +++ b/assets/chezmoi.io/docs/reference/release-history.md.tmpl @@ -20,7 +20,7 @@ | replaceAllRegex "\\(#(\\d+)[)]" "(https://github.com/twpayne/chezmoi/pull/$1)" | replaceAllRegex "(https://github\\.com/twpayne/chezmoi/pull/(\\d+))" "[#$2]($1)" | replaceAllRegex "(?m)^([0-9a-f]{7,})" "* $1" - | replaceAllRegex "(?m)^\\* ([0-9a-f]{7,})" "* [`$1`](https://github.com/twpayne/chezmoi/commit/$1)" + | replaceAllRegex "(?m)^\\* (([0-9a-f]{7})[0-9a-f]*)" "* [`$2`](https://github.com/twpayne/chezmoi/commit/$1)" | replaceAllRegex "\\r\\n" "\\n" | trim | default "Internal changes only"