From bed132dae4be4309f653e46b1523f45ef4045219 Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Fri, 25 Mar 2022 13:40:41 +0000 Subject: [PATCH] Use a more restrictive `sed` pattern --- .github/update-release-branch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/update-release-branch.py b/.github/update-release-branch.py index 5e1b4f89d..22ac4d4d2 100644 --- a/.github/update-release-branch.py +++ b/.github/update-release-branch.py @@ -277,7 +277,7 @@ def main(): # Migrate the changelog notes from v2 version numbers to v1 version numbers print('Migrating changelog notes from v2 to v1') - subprocess.run(['sed', '-i', 's/## 2\./## 1\./g', 'CHANGELOG.md']) + subprocess.run(['sed', '-i', 's/^## 2\./## 1./g', 'CHANGELOG.md']) # Amend the commit generated by `npm version` to update the CHANGELOG run_git('add', 'CHANGELOG.md')