improve regex
This commit is contained in:
parent
11a9af0387
commit
5eccb79587
6 changed files with 6 additions and 6 deletions
2
lib/setup-tools.js
generated
2
lib/setup-tools.js
generated
|
|
@ -57,7 +57,7 @@ async function setupCodeQL() {
|
|||
}
|
||||
exports.setupCodeQL = setupCodeQL;
|
||||
function getCodeQLURLVersion(url) {
|
||||
const match = url.match(/codeql-bundle-([\d+(\.\d+)]+)/);
|
||||
const match = url.match(/\/codeql-bundle-(.*)\//);
|
||||
if (match === null || match.length < 2) {
|
||||
throw new Error(`Malformed tools url: ${url}. Version could not be inferred`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue