mirror of
https://github.com/github/codeql-action
synced 2026-05-25 15:00:36 +03:00
Fix regex
This commit is contained in:
Generated
+1
-1
@@ -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));
|
||||
|
||||
+1
-1
@@ -278,7 +278,7 @@ function getLocalConfig(configFile: string, workspacePath: string): any {
|
||||
|
||||
function getRemoteConfig(configFile: string): any {
|
||||
// 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