From f019960d3408a9a7555adb1ba500ffe1f010ebf2 Mon Sep 17 00:00:00 2001 From: newtextdoc1111 Date: Wed, 16 Jul 2025 08:14:33 +0900 Subject: [PATCH] fix: Remove unneccesary period handling in findAllTagPositions --- web/js/utils.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/js/utils.js b/web/js/utils.js index 2c816ba..ac0246d 100644 --- a/web/js/utils.js +++ b/web/js/utils.js @@ -349,13 +349,11 @@ export function findAllTagPositions(text) { // Find the end of this tag (next comma or newline) let endPosComma = text.indexOf(',', startPos); let endPosNewline = text.indexOf('\n', startPos); - let endPosPeriod = text.indexOf('.', startPos); if (endPosComma === -1) endPosComma = text.length; if (endPosNewline === -1) endPosNewline = text.length; - if (endPosPeriod === -1) endPosPeriod = text.length; - const endPos = Math.min(endPosComma, endPosNewline, endPosPeriod); + const endPos = Math.min(endPosComma, endPosNewline); const tagText = text.substring(startPos, endPos); if (tagText.trim().length > 0) {