Skip to content

Commit cc75783

Browse files
fix: proxy streams fail fast on oversized or stalled responses (#97235)
* fix proxy response and SSE read bounds * test(line): reuse surrogate regex in action tests --------- Co-authored-by: Vincent Koc <[email protected]>
1 parent f420157 commit cc75783

3 files changed

Lines changed: 523 additions & 56 deletions

File tree

extensions/line/src/message-cards.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ describe("flex cards", () => {
330330
});
331331

332332
describe("action label/data surrogate-safe truncation", () => {
333-
const loneHighSurrogate = /[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;
334333
// 19 ASCII chars + 😀 (U+1F600, two UTF-16 code units) = 21 code units; a raw
335334
// .slice(0, 20) would keep the first 19 chars plus the lone high surrogate.
336335
const labelWithEmoji = "1234567890123456789😀";

0 commit comments

Comments
 (0)