Auto-reply: format and lint fixes

This commit is contained in:
Peter Steinberger
2025-12-03 00:30:05 +00:00
parent b6c45485bc
commit ecac4dd72a
4 changed files with 7 additions and 4 deletions

View File

@@ -38,7 +38,10 @@ export function chunkText(text: string, limit: number): string[] {
// If we broke on whitespace/newline, skip that separator; for hard breaks keep it.
const brokeOnSeparator =
breakIdx < remaining.length && /\s/.test(remaining[breakIdx]);
const nextStart = Math.min(remaining.length, breakIdx + (brokeOnSeparator ? 1 : 0));
const nextStart = Math.min(
remaining.length,
breakIdx + (brokeOnSeparator ? 1 : 0),
);
remaining = remaining.slice(nextStart).trimStart();
}