Skip to content

Commit 7c07555

Browse files
authored
fix(log): preserve leading whitespace in logs (#7879)
1 parent c406afd commit 7c07555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/livewire/project/shared/get-logs.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ class="text-gray-500 dark:text-gray-400 py-2">
435435
// Parse timestamp from log line (ISO 8601 format: 2025-12-04T11:48:39.136764033Z)
436436
$timestamp = '';
437437
$logContent = $line;
438-
if (preg_match('/^(\d{4})-(\d{2})-(\d{2})T(\d{2}:\d{2}:\d{2})(?:\.(\d+))?Z?\s*(.*)$/', $line, $matches)) {
438+
if (preg_match('/^(\d{4})-(\d{2})-(\d{2})T(\d{2}:\d{2}:\d{2})(?:\.(\d+))?Z?\s(.*)$/', $line, $matches)) {
439439
$year = $matches[1];
440440
$month = $matches[2];
441441
$day = $matches[3];

0 commit comments

Comments
 (0)