From a2a77a49b149a0e51795a9f5ba5d587d8c1a8d75 Mon Sep 17 00:00:00 2001 From: "Max P." Date: Sat, 13 Dec 2025 20:11:25 +0100 Subject: [PATCH] chore(changelog): normalize version headings by replacing hyphens with tildes --- cliff.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cliff.toml b/cliff.toml index 899c79c..a591d67 100644 --- a/cliff.toml +++ b/cliff.toml @@ -29,10 +29,10 @@ body = """ {% if version %}\ {% if previous.version %}\ - ## [{{ version | trim_start_matches(pat="v") }}]\ + ## [{{ version | trim_start_matches(pat="v") | replace(from="-", to="~") }}]\ ({{ self::remote_url() }}/compare/{{ previous.version }}..{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }} {% else %}\ - ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} + ## [{{ version | trim_start_matches(pat="v") | replace(from="-", to="~") }}] - {{ timestamp | date(format="%Y-%m-%d") }} {% endif %}\ {% else %}\ ## [unreleased]