mirror of
https://github.com/portainer/portainer.git
synced 2025-08-01 20:05:23 +02:00
This reverts commit e78519f492
.
This commit is contained in:
parent
ee6c3f958f
commit
03a4f1227e
4 changed files with 16 additions and 18 deletions
|
@ -19,3 +19,8 @@ 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