Fix regex

This commit is contained in:
Sam Partington
2020-06-25 15:03:26 +01:00
parent 56292b1fa3
commit 32c9898fa4
2 changed files with 2 additions and 2 deletions

2
lib/config-utils.js generated
View File

@@ -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));