mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
fix(gitops): clean trailing slash [EE-6346] (#10777)
Co-authored-by: testa113 <testa113>
This commit is contained in:
parent
a2d6d6002c
commit
4e8b371fb7
4 changed files with 18 additions and 16 deletions
|
@ -19,8 +19,3 @@ export function getValidEditorTypes(
|
|||
? _.intersection(...endpointTypes.map((type) => right[type]))
|
||||
: [EditorType.Compose, EditorType.Kubernetes];
|
||||
}
|
||||
|
||||
export function removeTrailingGitExtension(url: string) {
|
||||
// the url could have the .git extension. Remove it if it does.
|
||||
return url.replace(/\.git$/, '');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue