MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / parseBudgetMatch

Function parseBudgetMatch

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

Source from the content-addressed store, hash-verified

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

Callers 1

parseTokenBudgetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected