Skip to content

Commit

Permalink
for empty strings too
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Jan 16, 2016
1 parent 5ab271b commit 7420757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/system/debug/debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -1923,7 +1923,7 @@ protected function prettyPrintJSON($json = '')

// Add some colors
$json = preg_replace('#"([^"]+)":#', '<span class=\'black\'>"</span><span class=\'green\'>$1</span><span class=\'black\'>"</span>:', $json);
$json = preg_replace('#"([^"]+)"#', '<span class=\'grey\'>"$1"</span>', $json);
$json = preg_replace('#"(|[^"]+)"#', '<span class=\'grey\'>"$1"</span>', $json);
$json = str_replace('null,', '<span class=\'blue\'>null</span>,', $json);

return $json;
Expand Down

0 comments on commit 7420757

Please sign in to comment.