lot more stuff

This commit is contained in:
Morten Olsen
2025-08-04 23:44:14 +02:00
parent daf0ea21bb
commit 757b2fcfac
185 changed files with 115899 additions and 1874 deletions

View File

@@ -1,4 +1,4 @@
const getWithNamespace = (input: string) => {
const getWithNamespace = (input: string, defaultNamespace?: string) => {
const result = input.split('/');
const first = result.pop();
if (!first) {
@@ -6,7 +6,7 @@ const getWithNamespace = (input: string) => {
}
return {
name: first,
namespace: result.join('/'),
namespace: result.length > 0 ? result.join('/') : defaultNamespace,
};
};