Correctly decode all embedded telemetry data

This commit is contained in:
2026-03-20 10:54:10 +01:00
parent e49333611f
commit 83d05fb2e9
2 changed files with 22 additions and 4 deletions

View File

@@ -346,10 +346,11 @@ export const decodeCommentExtras = (comment: string, withStructure: boolean = fa
}
// Parse embedded telemetry in comment. Look for |ss11|, |ss1122|, |ss112233|, |ss1122334455|, or |ss1122334455!"| patterns (where ss is sequence and each pair of digits is an analog channel in base91, and optional last pair is digital channel in base91).
if ((match = comment.match(/\|([a-z0-9]{4,14})\|/i))) {
if ((match = comment.match(/\|([^|]+)\|/))) {
try {
const telemetry = decodeTelemetry(match[1]);
extras.telemetry = telemetry;
comment = comment.replace(match[0], "").trim();
if (withStructure) {
fields.push(
{