mirror of
https://github.com/github/codeql-action.git
synced 2025-12-24 08:10:06 +08:00
Fix regex
This commit is contained in:
2
lib/config-utils.js
generated
2
lib/config-utils.js
generated
@@ -244,7 +244,7 @@ function getLocalConfig(configFile, workspacePath) {
|
||||
}
|
||||
function getRemoteConfig(configFile) {
|
||||
// validate the config location
|
||||
const format = new RegExp('(?<owner>[^/]+)/(?<repo>[^/]+)/(?<filepath>[^@]+)@(<?ref>.*)');
|
||||
const format = new RegExp('(?<owner>[^/]+)/(?<repo>[^/]+)/(?<filepath>[^@]+)@(?<ref>.*)');
|
||||
const pieces = format.exec(configFile);
|
||||
if (pieces === null || pieces.length < 4) {
|
||||
throw new Error(getConfigFileRepoFormatInvalid(configFile));
|
||||
|
||||
Reference in New Issue
Block a user