This commit is contained in:
Timothy Jaeryang Baek 2025-10-11 15:50:32 -05:00
parent 5064506de4
commit ffad1f1dd1

View file

@ -83,7 +83,7 @@ export const replaceTokens = (content, sourceIds, char, user) => {
const sourceId = sourceIds[idx - 1]; const sourceId = sourceIds[idx - 1];
return sourceId return sourceId
? `<source_id data="${idx}" title="${encodeURIComponent(sourceId)}" />` ? `<source_id data="${idx}" title="${encodeURIComponent(sourceId)}" />`
: match; : `[${idx}]`;
}) })
.join(''); .join('');