Fix slug lookup and add regression test

This commit is contained in:
Codex Agent
2026-03-09 07:55:17 +00:00
parent c006971cbe
commit 3e26376584
3 changed files with 37 additions and 0 deletions

View File

@@ -463,6 +463,11 @@ export const calculators: CalculatorDef[] = [
out += """
];
const slugIndex: Map<string, CalculatorDef> = new Map(
calculators.map(calc => [calc.slug, calc])
);
"""
out += """