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}
|
||||
const adoModernMatch = trimmed.match(
|
||||
/^https?:\/\/(dev\.azure\.com)\/([^/]+)\/([^/]+)\/_git\/([^/.]+?)(?:\.git)?(\/.*)?$/,
|
||||
|
|
@ -122,7 +122,7 @@ class CustomModuleManager {
|
|||
error: null,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
// HTTPS URL: https://host/owner/repo[/tree/branch/subdir][.git]
|
||||
const httpsMatch = trimmed.match(/^https?:\/\/([^/]+)\/([^/]+)\/([^/.]+?)(?:\.git)?(\/.*)?$/);
|
||||
if (httpsMatch) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue