fix(studio): убрать лишний escape \[ в docsLang regex (CI lint error из влитого main)
All checks were successful
CI / Lint (pull_request) Successful in 1m8s
CI / Build (pull_request) Successful in 1m58s
CI / Secret scan (pull_request) Successful in 30s
CI / PR size check (pull_request) Successful in 12s
CI / Deploy to S1 + S2 (pull_request) Has been skipped

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
min 2026-06-10 01:41:04 +03:00
parent 2f9d6a21f6
commit ba71f5f4b9

View File

@ -83,7 +83,7 @@ export function highlightCode(text, lang) {
// Классифицируем
if (tok.startsWith('--') || tok.startsWith('//') || tok.startsWith('/*')) {
tokens.push({ type: 'comment', text: tok });
} else if (/^["'`\[]/.test(tok)) {
} else if (/^["'`[]/.test(tok)) {
tokens.push({ type: 'string', text: tok });
} else if (/^\d/.test(tok)) {
tokens.push({ type: 'number', text: tok });