fix(#1698): use CRLF-safe split in codex-exec flags test

The lint-tests check (local/no-crlf-fragile-split) flagged splitting
readFileSync content on literal "\n". Use .split(/\r?\n/) for Windows
git-autocrlf portability.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Behruz Nassre Esfahani
2026-06-25 20:25:20 -07:00
parent f9143a400c
commit d858b6faca

View File

@@ -113,7 +113,7 @@ describe('#1698 regression: codex review is captured via --output-last-message,
'utf8'
);
const codexExecLines = workflow
.split('\n')
.split(/\r?\n/)
.filter((line) => line.includes('codex exec') && !line.includes('codex exec --help'));
test('every codex exec invocation captures the review via -o <FILE>', () => {