MCPcopy Create free account
hub / github.com/VPSDance/ai-proxy-rules / normalizeDnsRules

Function normalizeDnsRules

scripts/rules.ts:106–108  ·  view source on GitHub ↗
(values: string[])

Source from the content-addressed store, hash-verified

104 return compacted;
105}
106
107function isDomainCoveredBySuffix(domain: string, suffix: string): boolean {
108 return domain === suffix || domain.endsWith(`.${suffix}`);
109}
110
111function normalizeDnsRules(values: string[]): string[] {

Callers 1

normalizeRuleSetFunction · 0.85

Calls 1

normalizeTextRulesFunction · 0.85

Tested by

no test coverage detected