Skip to content

Commit

Permalink
only match start of log line against regex
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherHX authored Nov 26, 2024
1 parent c040f09 commit 96bc44d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runner-server-vscode/logs/formatProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as vscode from "vscode";
import {LogInfo} from "./model";
import {Parser, VSCodeDefaultColors} from "./parser";

const timestampRE = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{7}Z/;
const timestampRE = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{7}Z/;

const timestampDecorationType = vscode.window.createTextEditorDecorationType({
color: "#99999959"
Expand Down

0 comments on commit 96bc44d

Please sign in to comment.