This commit is contained in:
legop3
2026-02-28 02:13:21 -05:00
parent 632d474e61
commit 1350d7c395
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -797,13 +797,13 @@ function normalizeCommentary(rawText) {
if (typeof rawText !== 'string') return null;
const trimmed = rawText.trim();
if (!trimmed) return null;
if (trimmed.toUpperCase() === SKIP_TOKEN) return null;
if (/\bSKIP\b/i.test(trimmed)) return null;
const firstLine = trimmed
.split(/\r?\n/)
.map((line) => line.trim())
.find(Boolean);
if (!firstLine) return null;
if (firstLine.toUpperCase() === SKIP_TOKEN) return null;
if (/\bSKIP\b/i.test(firstLine)) return null;
return firstLine.replace(/\s+/g, ' ');
}