Skip to content

Commit 9164cd0

Browse files
committed
fix(console): remove unnecessary regex escape in mcp config highlighter
1 parent 63b0e45 commit 9164cd0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

console/src/pages/settings/components/mcp-connect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ function highlightJson(json: string) {
238238
)
239239
// standalone strings (array items etc.)
240240
.replace(
241-
/(?<=[\[,]\s*)("(?:[^"\\]|\\.)*")/g,
241+
/(?<=[[,]\s*)("(?:[^"\\]|\\.)*")/g,
242242
'<span class="text-green-400">$1</span>',
243243
)
244244
// numbers

0 commit comments

Comments
 (0)