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

Function normalizeCloudflareDomain

background.js:615–623  ·  view source on GitHub ↗
(rawValue = '')

Source from the content-addressed store, hash-verified

613}
614
615function normalizeCloudflareDomain(rawValue = '') {
616 let value = String(rawValue || '').trim().toLowerCase();
617 if (!value) return '';
618 value = value.replace(/^@+/, '');
619 value = value.replace(/^https?:\/\//, '');
620 value = value.replace(/\/.*$/, '');
621 if (!/^[a-z0-9.-]+\.[a-z]{2,}$/.test(value)) return '';
622 return value;
623}
624
625function normalizeCloudflareDomains(values) {
626 const normalizedDomains = [];

Callers 3

fetchCloudflareEmailFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected