fix(telegram): repair rich message typecheck · openclaw/openclaw@42759a1
vincentkoc
·
2026-06-15
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -297,7 +297,6 @@ function markdownTableColumnCount(row: string): number {
|
297 | 297 | } |
298 | 298 | |
299 | 299 | function findRichMarkdownTableLineIndexes( |
300 | | -markdown: string, |
301 | 300 | lines: readonly string[], |
302 | 301 | fenceSpans: readonly RichMarkdownFenceSpan[], |
303 | 302 | ): Set<number> { |
@@ -336,7 +335,7 @@ function preserveTelegramRichMarkdownLineBreaks(markdown: string): string {
|
336 | 335 | |
337 | 336 | const fenceSpans = parseRichMarkdownFenceSpans(markdown); |
338 | 337 | const lines = markdown.split("\n"); |
339 | | -const tableLineIndexes = findRichMarkdownTableLineIndexes(markdown, lines, fenceSpans); |
| 338 | +const tableLineIndexes = findRichMarkdownTableLineIndexes(lines, fenceSpans); |
340 | 339 | const out: string[] = []; |
341 | 340 | let offset = 0; |
342 | 341 | for (let index = 0; index < lines.length; index += 1) { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。