Skip to content

Commit 1740925

Browse files
committed
Pretty JSON Text with JSON_UNESCAPED_SLASHES
1 parent cbd58aa commit 1740925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composer-lock-diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if (! $opts['only-prod']) {
1616
}
1717

1818
if ($opts['json']) {
19-
$json_opts = ($opts['pretty']) ? JSON_PRETTY_PRINT : 0;
19+
$json_opts = ($opts['pretty']) ? JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT : 0;
2020
echo json_encode($changes, $json_opts), PHP_EOL;
2121
return;
2222
}

0 commit comments

Comments
 (0)