style(insights): prettier sweep on legacy-payload hotfix files

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Marc-André BombeckandClaude Opus 4.7 committed 2026-05-10 09:51:02 +02:00
1 parent adab80ac81
commit da7070e222
2 files changed
+7 -5

No files matched your search

+3 -1
View File
@@ -58,7 +58,9 @@ const TOKEN_REGEX = /metric:[A-Z_]+/g;
* non-string input as empty — the legacy-payload CTA owns the user-
* facing recovery path.
*/
export function parseChartTokens(text: string | null | undefined): ChartToken[] {
export function parseChartTokens(
text: string | null | undefined,
): ChartToken[] {
if (typeof text !== "string") return [];
const matches: string[] = text.match(TOKEN_REGEX) ?? [];
return matches.filter((m): m is ChartToken => ALLOWED_SET.has(m));