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

Function updateSourceStatus

web/scripts/ragnar_modern.js:14930–14935  ·  view source on GitHub ↗
(elementId, isActive)

Source from the content-addressed store, hash-verified

14928 const cidr = new RegExp(`^${ipv4}/(\\d|[12]\\d|3[0-2])$`);
14929 const startEnd = new RegExp(`^${ipv4}-(${ipv4}|${octet})$`);
14930 const single = new RegExp(`^${ipv4}$`);
14931 return cidr.test(v) || startEnd.test(v) || single.test(v);
14932}
14933
14934async function runRangeScan() {
14935 const inputEl = document.getElementById('range-scan-input');
14936 const statusEl = document.getElementById('range-scan-status');
14937 const buttonEl = document.getElementById('range-scan-btn');
14938 const csvBtn = document.getElementById('range-scan-csv-btn');

Callers 1

updateThreatIntelStatsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected