From d165d7065f19750138a340c960b01887985b72d6 Mon Sep 17 00:00:00 2001 From: StrangeDrVN <172238701+StrangeDrVN@users.noreply.github.com> Date: Tue, 14 Jul 2026 14:28:49 +0530 Subject: [PATCH] Fix regex for line content error handling --- scripts/commands/workers/validate.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/commands/workers/validate.ts b/scripts/commands/workers/validate.ts index 10b6cc7bc..8834c749b 100644 --- a/scripts/commands/workers/validate.ts +++ b/scripts/commands/workers/validate.ts @@ -34,12 +34,12 @@ async function main() { if (lineNum === lines.length && line.trim() === '') return if (!line.endsWith('\r')) { - errors.push({ line: lineNum, type: 'missing_crlf', content: line.replace('\r', '') }) + errors.push({ line: lineNum, type: 'missing_crlf', content: line.replace(/\r/g, '') }) totalErrors++ } if (line.includes(' ')) { - errors.push({ line: lineNum, type: 'contains_spaces', content: line.replace('\r', '') }) + errors.push({ line: lineNum, type: 'contains_spaces', content: line.replace(/\r/g, '') }) totalErrors++ } })