From ae4e35319acc83252d7351e57842aaa70eea3364 Mon Sep 17 00:00:00 2001 From: Sparks1998 <48773842+Sparks1998@users.noreply.github.com> Date: Sun, 11 Aug 2019 14:10:55 +0300 Subject: [PATCH] Update Parser.php --- src/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Parser.php b/src/Parser.php index a5a8880..84bf9e4 100644 --- a/src/Parser.php +++ b/src/Parser.php @@ -24,7 +24,7 @@ public static function parse(string $content): array $length = $value ? strlen($value) : 0; if ($length > 0 && strpos($value, '"') === 0 && substr($value, -1) === '"') { - $value = preg_replace('/\\n/gm', "\n", $value); + $value = preg_replace('/\\n/m', "\n", $value); } $value = trim(preg_replace('/(^[\'"]|[\'"]$)/', '', $value));