chore: format

This commit is contained in:
Timothy Jaeryang Baek
2026-03-25 16:43:06 -05:00
parent 05252e19b5
commit 350d52f515
73 changed files with 766 additions and 55 deletions
@@ -452,10 +452,7 @@
// Escape HTML entities in the line FIRST so we don't corrupt
// user text that happens to contain < or >, then re-inject
// the mention spans.
const escaped = line
.replace(/&/g, '&amp;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;');
const escaped = line.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
// Now replace the escaped mention patterns back into real spans
const withMentions = escaped.replace(
/&lt;([@#$])([\w.\-:/]+)(?:\|([^&]*?))?&gt;/g,