Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

fix: escape dot in regular expression #794

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/gen-changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if (!packageJSON.repository || typeof packageJSON.repository.url !== 'string') {
process.exit(1);
}

const repoURLMatch = /https:\/\/github.com\/(?<githubOrg>[^/]+)\/(?<githubRepo>[^/]+).git/.exec(
const repoURLMatch = /https:\/\/github\.com\/(?<githubOrg>[^/]+)\/(?<githubRepo>[^/]+)\.git/.exec(
packageJSON.repository.url,
);
if (repoURLMatch == null) {
Expand Down