mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 22:26:13 +00:00
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:
1 parent
adab80ac81
commit
da7070e222
2 files changed
+7
-5
No files matched your search
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user