MCPcopy Create free account
hub / github.com/Noumena-Network/code / parseBudgetMatch

Function parseBudgetMatch

src/utils/tokenBudget.ts:17–19  ·  view source on GitHub ↗
(value: string, suffix: string)

Source from the content-addressed store, hash-verified

15}
16
17function parseBudgetMatch(value: string, suffix: string): number {
18 return parseFloat(value) * MULTIPLIERS[suffix.toLowerCase()]!
19}
20
21export function parseTokenBudget(text: string): number | null {
22 const startMatch = text.match(SHORTHAND_START_RE)

Callers 1

parseTokenBudgetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected