Skip to content

Commit

Permalink
Cs Fix (#674)
Browse files Browse the repository at this point in the history
Co-authored-by: Deeka Wong <[email protected]>
  • Loading branch information
huangdijia and huangdijia authored Jun 15, 2024
1 parent a29c66f commit 3f9824c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Writer/EnvWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3f9824c

Please sign in to comment.