mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 20:27:43 +00:00
fix(k8s): dynamic secret bugs
This commit is contained in:
@@ -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: "" };
|
return { key: pastedContent.trim(), value: "" };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user