MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / normalizeRunCount

Function normalizeRunCount

background.js:374–380  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

372}
373
374function normalizeRunCount(value) {
375 const numeric = Number(value);
376 if (!Number.isFinite(numeric)) {
377 return 1;
378 }
379 return Math.min(50, Math.max(1, Math.floor(numeric)));
380}
381
382function normalizeAutoRunTimerKind(value = '') {
383 const normalized = String(value || '').trim().toLowerCase();

Callers 2

handleMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected