1.0.30
This commit is contained in:
49 files changed
+1414
-492
No files matched your search
+1
-6
@@ -18,12 +18,7 @@ function parseEnvFile(content: string): Record<string, string> {
|
||||
const eqIndex = trimmed.indexOf('=');
|
||||
if (eqIndex > 0) {
|
||||
const key = trimmed.substring(0, eqIndex).trim();
|
||||
let value = trimmed.substring(eqIndex + 1);
|
||||
// Remove surrounding quotes if present
|
||||
if ((value.startsWith('"') && value.endsWith('"')) ||
|
||||
(value.startsWith("'") && value.endsWith("'"))) {
|
||||
value = value.slice(1, -1);
|
||||
}
|
||||
const value = trimmed.substring(eqIndex + 1);
|
||||
result[key] = value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user