fix: correct typo (#22392)

This commit is contained in:
Adam Setch 2023-05-24 01:01:24 -04:00 committed by GitHub
parent a894b750e5
commit 800336bae9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -195,9 +195,9 @@ function findTagOfRelease(
tags: string[] tags: string[]
): string | undefined { ): string | undefined {
const regex = regEx(`(?:${packageName}|release)[@-]`, undefined, false); const regex = regEx(`(?:${packageName}|release)[@-]`, undefined, false);
const excactReleaseRegex = regEx(`${packageName}[@\\-_]v?${depNewVersion}`); const exactReleaseRegex = regEx(`${packageName}[@\\-_]v?${depNewVersion}`);
const exactTagsList = tags.filter((tag) => { const exactTagsList = tags.filter((tag) => {
return excactReleaseRegex.test(tag); return exactReleaseRegex.test(tag);
}); });
let tagName: string | undefined; let tagName: string | undefined;
if (exactTagsList.length) { if (exactTagsList.length) {