Skip to content

Commit 42759a1

Browse files
committed
fix(telegram): repair rich message typecheck
1 parent 5b18b75 commit 42759a1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

extensions/telegram/src/rich-message.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ function markdownTableColumnCount(row: string): number {
297297
}
298298

299299
function findRichMarkdownTableLineIndexes(
300-
markdown: string,
301300
lines: readonly string[],
302301
fenceSpans: readonly RichMarkdownFenceSpan[],
303302
): Set<number> {
@@ -336,7 +335,7 @@ function preserveTelegramRichMarkdownLineBreaks(markdown: string): string {
336335

337336
const fenceSpans = parseRichMarkdownFenceSpans(markdown);
338337
const lines = markdown.split("\n");
339-
const tableLineIndexes = findRichMarkdownTableLineIndexes(markdown, lines, fenceSpans);
338+
const tableLineIndexes = findRichMarkdownTableLineIndexes(lines, fenceSpans);
340339
const out: string[] = [];
341340
let offset = 0;
342341
for (let index = 0; index < lines.length; index += 1) {

0 commit comments

Comments
 (0)