diff --git a/LifeOS/Tools/PulseHealth.ts b/LifeOS/Tools/PulseHealth.ts index f51fcef219..2c5a33482b 100644 --- a/LifeOS/Tools/PulseHealth.ts +++ b/LifeOS/Tools/PulseHealth.ts @@ -69,7 +69,8 @@ export function h2Headings(text: string): string[] { } /** GenerateTelosSummary's section key: dash suffix and trailing parentheticals dropped, lowercased, plural-tolerant. */ -const headingKey = (h: string): string => h.replace(/\s*[—–-].*$/, "").replace(/\s*\(.*\)\s*$/, "").trim().toLowerCase().replace(/s$/, ""); +const headingKey = (h: string): string => + h.replace(/\s*\(.*\)\s*$/, "").replace(/\s*[—–-].*$/, "").replace(/\s*\(.*\)\s*$/, "").trim().toLowerCase().replace(/s$/, ""); /** * Template sections a USER file lacks: for every `*.md` in the template tree (recursively, symlinks skipped) whose USER diff --git a/LifeOS/install/skills/LifeOS/Tools/PulseHealth.ts b/LifeOS/install/skills/LifeOS/Tools/PulseHealth.ts index f51fcef219..2c5a33482b 100644 --- a/LifeOS/install/skills/LifeOS/Tools/PulseHealth.ts +++ b/LifeOS/install/skills/LifeOS/Tools/PulseHealth.ts @@ -69,7 +69,8 @@ export function h2Headings(text: string): string[] { } /** GenerateTelosSummary's section key: dash suffix and trailing parentheticals dropped, lowercased, plural-tolerant. */ -const headingKey = (h: string): string => h.replace(/\s*[—–-].*$/, "").replace(/\s*\(.*\)\s*$/, "").trim().toLowerCase().replace(/s$/, ""); +const headingKey = (h: string): string => + h.replace(/\s*\(.*\)\s*$/, "").replace(/\s*[—–-].*$/, "").replace(/\s*\(.*\)\s*$/, "").trim().toLowerCase().replace(/s$/, ""); /** * Template sections a USER file lacks: for every `*.md` in the template tree (recursively, symlinks skipped) whose USER