fix: resolve all 6 prefer-const eslint errors for CI
Some checks failed
CI / Lint, Test & Build (push) Failing after 5m33s
Deploy to Production / Build and Deploy (push) Has been cancelled

This commit is contained in:
Antigravity
2026-05-16 22:47:38 +00:00
parent 983e2542c9
commit 878303a997
6 changed files with 6 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ const HTML_IMG = /<img[^>]+src=["']([^"']+)["'][^>]*>/gi
*/
export function stripMarkdownPreview(raw: string, maxLen = 180): string {
if (!raw?.trim()) return ''
let t = raw
const t = raw
.replace(/^#{1,6}\s+/gm, '')
.replace(/```[\s\S]*?```/g, ' ')
.replace(/\*\*([^*]+)\*\*/g, '$1')