Skip to content

Commit 6535d9e

Browse files
committed
Fix tsc error
1 parent 4dc1fd9 commit 6535d9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/console-color.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class ColoredConsole {
2828
}
2929

3030
addLine(line: string) {
31-
const re = /(?:\033|\\033)(?:\[(.*?)[@-~]|\].*?(?:\007|\033\\))/g;
31+
const re = /(?:\x1b|\\033)(?:\[(.*?)[@-~]|\].*?(?:\x07|\x07\\))/g;
3232
let i = 0;
3333

3434
if (this.state.carriageReturn) {

0 commit comments

Comments
 (0)