mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 21:27:31 +00:00
Update parseEnvVar.ts
This commit is contained in:
@@ -15,7 +15,6 @@ export const getKeyValue = (pastedContent: string, delimiters: string[]) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Check if there's any content after the delimiter
|
|
||||||
const hasValueAfterDelimiter = pastedContent.length > firstDelimiterIndex + foundDelimiter.length;
|
const hasValueAfterDelimiter = pastedContent.length > firstDelimiterIndex + foundDelimiter.length;
|
||||||
|
|
||||||
if (firstDelimiterIndex === -1 || !hasValueAfterDelimiter) {
|
if (firstDelimiterIndex === -1 || !hasValueAfterDelimiter) {
|
||||||
|
|||||||
Reference in New Issue
Block a user