Correctly decode all embedded telemetry data
This commit is contained in:
@@ -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(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user