Skip to content

Commit c5f0ef8

Browse files
committed
find the matching group the right way
1 parent 6500903 commit c5f0ef8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

repo-scripts/changelog-generator/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ async function getFixedIssueLink(
104104
return '';
105105
}
106106

107-
const issueNumber = match.groups![3];
107+
console.log(match);
108+
const issueNumber = match[3];
108109
return `Fixed [#${issueNumber}](https://github.com/firebase/firebase-js-sdk/issues/${issueNumber})`;
109110
}
110111

repo-scripts/changelog-generator/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
1313
"lint:fix": "eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
1414
"build": "tsc",
15+
"build:dev": "tsc -w",
1516
"test": "yarn type-check && run-p lint test:browser test:node",
1617
"test:ci": "node ../../scripts/run_tests_in_ci.js",
1718
"test:browser": "karma start --single-run",

0 commit comments

Comments
 (0)