We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec21629 commit 784de6aCopy full SHA for 784de6a
lib/services/project.service.ts
@@ -79,7 +79,7 @@ export const findProjectRepositoriesMaven = (): string[] => {
79
.filter(Boolean)
80
.flatMap((document) =>
81
xpath.select(
82
- 'string(//*[local-name()="project"]/*[local-name()="scm"]/*[local-name()="url"])',
+ 'string(//*[local-name()="project"]/*[local-name()="scm"]/*[local-name()="connection" or local-name()="developerConnection"][last()])',
83
document!,
84
true
85
)
@@ -129,6 +129,7 @@ function findSetupPyFiles() {
129
130
function sanitizeRepositoryUrl(rawUrl: string) {
131
return rawUrl
132
+ .replace(/^scm:.*?:/gi, '') // remove maven scm prefix
133
.replace('git+', '')
134
.replace('git@', 'https://')
135
.replace(/(?<!https?):/gi, '/');
0 commit comments