fix: Remove unneccesary period handling in findAllTagPositions

This commit is contained in:
newtextdoc1111
2025-07-16 08:14:33 +09:00
parent 1d85f3e284
commit f019960d34
+1 -3
View File
@@ -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) {