Skip to content

Commit 11ac845

Browse files
committed
chore: revert fix regexp escaping when extracting changelog
1 parent a626ba8 commit 11ac845

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/release.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if (!process.env.CI && !TEST_BUILD) {
1414

1515
const isCI = process.env.CI;
1616
const githubRef = process.env.GITHUB_REF;
17-
const gitTag = getGithubTag();
17+
const gitTag = 'v8.0.0'; getGithubTag();
1818
const githubEventName = process.env.GITHUB_EVENT_NAME;
1919
const repoName = process.env.GITHUB_REPOSITORY;
2020

@@ -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)