Skip to content

Commit e8bbba9

Browse files
committed
test(line): reuse surrogate regex in action tests
1 parent 79c3183 commit e8bbba9

1 file changed

Lines changed: 0 additions & 1 deletion

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)