Skip to content

Commit 3cdc32c

Browse files
committed
fix: extend whitespace handling in updateWhitespaceRunState to include tab characters
1 parent 01d4adb commit 3cdc32c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/messages/responses-stream-translation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const updateWhitespaceRunState = (
3838
let count = previousCount
3939

4040
for (const char of chunk) {
41-
if (char === "\r" || char === "\n") {
41+
if (char === "\r" || char === "\n" || char === "\t") {
4242
count += 1
4343
if (count > MAX_CONSECUTIVE_FUNCTION_CALL_WHITESPACE) {
4444
return { nextCount: count, exceeded: true }

0 commit comments

Comments
 (0)