From fa9a3b75b25b769c14ff9d082db1f38f1f81423a Mon Sep 17 00:00:00 2001 From: GarmashAlex Date: Sat, 19 Jul 2025 18:01:21 +0300 Subject: [PATCH] fix: require at least one digit in changelog linkification regex --- scripts/linkify_changelog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/linkify_changelog.py b/scripts/linkify_changelog.py index 867ae14..f6a7492 100644 --- a/scripts/linkify_changelog.py +++ b/scripts/linkify_changelog.py @@ -26,6 +26,6 @@ repo_name = components[-2] for line in fileinput.input(inplace=True): - line = re.sub(r"\- #([0-9]*)", r"- [\\#\1](https://github.com/arkworks-rs/" + repo_name + r"/pull/\1)", line.rstrip()) + line = re.sub(r"\- #([0-9]+)", r"- [#\1](https://github.com/arkworks-rs/" + repo_name + r"/pull/\1)", line.rstrip()) # edits the current file - print(line) \ No newline at end of file + print(line)