Skip to content

Commit

Permalink
fix: sources inconsistencies on https repos url and urls suffixed by …
Browse files Browse the repository at this point in the history
….git (#98)
  • Loading branch information
rubenandre authored Sep 25, 2024
1 parent 5e80874 commit 6901cf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/Kustomization.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export function RevisionWidget(props) {
// const reconcilingCondition = reconcilingConditions.length === 1 ? reconcilingConditions[0] : undefined
// const reconciling = reconcilingCondition && reconcilingConditions[0].status === "True"

const url = source.spec.url.slice(source.spec.url.indexOf('@') + 1)
const url = source.spec.url.slice(source.spec.url.indexOf('@') + 1).replace(/https?:\/\//g, '').replace(/\.git/g, '')

const navigationHandler = inFooter ?
() => handleNavigationSelect("Sources", source.metadata.namespace, source.metadata.name, source.kind) :
Expand Down

0 comments on commit 6901cf1

Please sign in to comment.