From 05893a7b8478ea229968d093bfa2a6dbca6ec4d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nedim=20Salki=C4=87?= Date: Thu, 16 May 2024 16:01:47 +0200 Subject: [PATCH] fix: backticks sometimes removed in changelog (#2315) --- scripts/changeset/get-full-changelog.mts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/changeset/get-full-changelog.mts b/scripts/changeset/get-full-changelog.mts index 1421bb18345..e2513891261 100644 --- a/scripts/changeset/get-full-changelog.mts +++ b/scripts/changeset/get-full-changelog.mts @@ -46,7 +46,7 @@ async function getChangelogInfo( const prType = title.replace(/(\w+).*/, "$1"); // chore!: add something -> chore const isBreaking = title.includes(`${prType}!`); - const titleDescription = title.replace(/\w+\W+(.*)/, "$1"); // chore!: add something -> add something + const titleDescription = title.replace(/\w+!?:(.*)/, "$1").trim(); // chore!: add something -> add something const summary = titleDescription.charAt(0).toUpperCase() + titleDescription.slice(1);