Add regression test
This commit is contained in:
parent
b07135c4b8
commit
1f4b0cb523
6 changed files with 20 additions and 3 deletions
|
|
@ -138,7 +138,10 @@ function tryGetBundleVersionFromTagName(
|
|||
return match[1];
|
||||
}
|
||||
|
||||
function tryGetTagNameFromUrl(url: string, logger: Logger): string | undefined {
|
||||
export function tryGetTagNameFromUrl(
|
||||
url: string,
|
||||
logger: Logger,
|
||||
): string | undefined {
|
||||
const matches = [...url.matchAll(/\/(codeql-bundle-[^/]*)\//g)];
|
||||
if (!matches.length) {
|
||||
logger.debug(`Could not determine tag name for URL ${url}.`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue