fix: handle Azure DevOps _git URLs in custom module source parser
This commit is contained in:
parent
e7bfb46191
commit
5b74cde45b
|
|
@ -73,7 +73,7 @@ class CustomModuleManager {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Azure DevOps URL: https://dev.azure.com/{org}/{project}/_git/{repo}
|
// Azure DevOps URL: https://dev.azure.com/{org}/{project}/_git/{repo}
|
||||||
// Also supports legacy: https://{org}.visualstudio.com/{project}/_git/{repo}
|
// Also supports legacy: https://{org}.visualstudio.com/{project}/_git/{repo}
|
||||||
const adoModernMatch = trimmed.match(
|
const adoModernMatch = trimmed.match(
|
||||||
/^https?:\/\/(dev\.azure\.com)\/([^/]+)\/([^/]+)\/_git\/([^/.]+?)(?:\.git)?(\/.*)?$/,
|
/^https?:\/\/(dev\.azure\.com)\/([^/]+)\/([^/]+)\/_git\/([^/.]+?)(?:\.git)?(\/.*)?$/,
|
||||||
|
|
@ -122,7 +122,7 @@ class CustomModuleManager {
|
||||||
error: null,
|
error: null,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// HTTPS URL: https://host/owner/repo[/tree/branch/subdir][.git]
|
// HTTPS URL: https://host/owner/repo[/tree/branch/subdir][.git]
|
||||||
const httpsMatch = trimmed.match(/^https?:\/\/([^/]+)\/([^/]+)\/([^/.]+?)(?:\.git)?(\/.*)?$/);
|
const httpsMatch = trimmed.match(/^https?:\/\/([^/]+)\/([^/]+)\/([^/.]+?)(?:\.git)?(\/.*)?$/);
|
||||||
if (httpsMatch) {
|
if (httpsMatch) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue