From a28ca305193d13724a00784ebe6b4e82cad3281f Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 8 Sep 2025 02:35:51 +0400 Subject: [PATCH] refac/fix: source citation --- src/lib/utils/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index 0bf594a560..ea635bf286 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -70,7 +70,10 @@ export const replaceTokens = (content, sourceIds, char, user) => { if (Array.isArray(sourceIds)) { sourceIds.forEach((sourceId, idx) => { const regex = new RegExp(`\\[${idx + 1}\\]`, 'g'); - segment = segment.replace(regex, ``); + segment = segment.replace( + regex, + `` + ); }); }