Skip to content

Commit e4ab828

Browse files
committed
cp dines
1 parent d5cd891 commit e4ab828

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/components/LogsViewer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export const LogsViewer = ({
137137
const sanitizeMessage = (message: string): string => {
138138
// Strip ANSI escape sequences (colors, cursor movement, etc.)
139139
const strippedAnsi = message.replace(
140-
// eslint-disable-next-line no-control-regex
140+
141141
/\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])/g,
142142
"",
143143
);
@@ -149,7 +149,7 @@ export const LogsViewer = ({
149149
.replace(/\r/g, " ")
150150
.replace(/\t/g, " ")
151151
// Remove any other control characters (ASCII 0-31 except space)
152-
// eslint-disable-next-line no-control-regex
152+
153153
.replace(/[\x00-\x1F]/g, "")
154154
);
155155
};

src/components/StreamingLogsViewer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ export const StreamingLogsViewer = ({
236236
// Helper to sanitize log message
237237
const sanitizeMessage = (message: string): string => {
238238
const strippedAnsi = message.replace(
239-
// eslint-disable-next-line no-control-regex
239+
240240
/\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])/g,
241241
"",
242242
);
@@ -246,7 +246,7 @@ export const StreamingLogsViewer = ({
246246
.replace(/\n/g, " ")
247247
.replace(/\r/g, " ")
248248
.replace(/\t/g, " ")
249-
// eslint-disable-next-line no-control-regex
249+
250250
.replace(/[\x00-\x1F]/g, "")
251251
);
252252
};

src/router/Router.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ function UnknownScreen({ screenName }: { screenName: string }) {
7373
</Box>
7474
<Box marginBottom={1}>
7575
<Text color={colors.textDim}>
76-
You've navigated to an unknown page:{" "}
77-
<Text color={colors.error}>"{screenName}"</Text>
76+
{"You've navigated to an unknown page: "}
77+
<Text color={colors.error}>{`"${screenName}"`}</Text>
7878
</Text>
7979
</Box>
8080
<Box>

0 commit comments

Comments
 (0)