Skip to content

Commit a626ba8

Browse files
committed
chore: fix regexp escaping when extracting changelog
1 parent 607e475 commit a626ba8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ async function getReleaseNotes() {
173173
const result = [];
174174

175175
for (const line of lines) {
176-
if (line.match(new RegExp(`^## \\[${version}\\]`))) {
176+
if (line.match(new RegExp(`^## \[${version}\]`))) {
177177
capturing = true;
178178
result.push(line);
179179
} else if (line.match(/^## \[/) && capturing) {

0 commit comments

Comments
 (0)