fix: restore run-server quote trimming regex

This commit is contained in:
Fahad
2025-10-08 08:15:46 +04:00
parent 7a2fac1901
commit 1de454224c

View File

@@ -2021,7 +2021,7 @@ function Import-EnvFile {
foreach ($line in $envContent) { foreach ($line in $envContent) {
if ($line -match '^([^#][^=]*?)=(.*)$') { if ($line -match '^([^#][^=]*?)=(.*)$') {
$key = $matches[1].Trim() $key = $matches[1].Trim()
$value = $matches[2].Trim() -replace '^["'']| ["'']$', '' $value = $matches[2].Trim() -replace '^["'']|["'']$', ''
# Set environment variable for the current session # Set environment variable for the current session
[Environment]::SetEnvironmentVariable($key, $value, "Process") [Environment]::SetEnvironmentVariable($key, $value, "Process")