diff --git a/src/Writer/EnvWriter.php b/src/Writer/EnvWriter.php index 1307828..662054a 100644 --- a/src/Writer/EnvWriter.php +++ b/src/Writer/EnvWriter.php @@ -256,7 +256,7 @@ protected function escapeValue(string $value, bool $forceQuote): string // Quote the values if // it contains white-space or the following characters: " \ = : . $ // or simply force quote is enabled - if (preg_match('/\s|"|\\\\|=|:|\.|#|\$/u', $value) || $forceQuote) { + if (preg_match('/\s|"|\\\|=|:|\.|#|\$/u', $value) || $forceQuote) { // Replace backslashes with even more backslashes so when writing we can have escaped backslashes // damn.. that rhymes $value = str_replace('\\', '\\\\\\\\', $value);