Skip to content

Commit bed132d

Browse files
committed
Use a more restrictive sed pattern
1 parent 9d26fe0 commit bed132d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/update-release-branch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def main():
277277

278278
# Migrate the changelog notes from v2 version numbers to v1 version numbers
279279
print('Migrating changelog notes from v2 to v1')
280-
subprocess.run(['sed', '-i', 's/## 2\./## 1\./g', 'CHANGELOG.md'])
280+
subprocess.run(['sed', '-i', 's/^## 2\./## 1./g', 'CHANGELOG.md'])
281281

282282
# Amend the commit generated by `npm version` to update the CHANGELOG
283283
run_git('add', 'CHANGELOG.md')

0 commit comments

Comments
 (0)