fix(k8s): dynamic secret bugs

This commit is contained in:
Daniel Hougaard
2024-12-12 03:27:07 +04:00
parent 3b3482b280
commit 1ace8eebf8

View File

@@ -15,7 +15,10 @@ export const getKeyValue = (pastedContent: string, delimiters: string[]) => {
}
});
if (firstDelimiterIndex === -1) {
// Check if there's any content after the delimiter
const hasValueAfterDelimiter = pastedContent.length > firstDelimiterIndex + foundDelimiter.length;
if (firstDelimiterIndex === -1 || !hasValueAfterDelimiter) {
return { key: pastedContent.trim(), value: "" };
}