MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / renderInlineScanLogs

Function renderInlineScanLogs

web/scripts/ragnar_modern.js:19291–19299  ·  view source on GitHub ↗
(scanId, findingsAlsoExpanded = false)

Source from the content-addressed store, hash-verified

19289 mediumClass: 'text-2xl',
19290 smallClass: 'text-xl',
19291 ...options
19292 };
19293
19294 const numericValue = Number(value);
19295 const safeValue = Number.isFinite(numericValue) ? Math.trunc(numericValue) : 0;
19296 const digitCount = Math.abs(safeValue).toString().length;
19297
19298 let targetClass;
19299 if (digitCount >= config.largeDigits) {
19300 targetClass = config.smallClass;
19301 } else if (digitCount >= config.mediumDigits) {
19302 targetClass = config.mediumClass;

Callers 1

updateActiveScansFunction · 0.70

Calls 2

renderLogEntriesFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected