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

Function normalizeTextRules

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

Source from the content-addressed store, hash-verified

108}
109
110function normalizeTextRules(values: string[]): string[] {
111 return [...new Set(values.map((value) => value.trim()).filter(Boolean))].sort();
112}
113
114function normalizeAsnRules(values: number[]): number[] {
115 return [...new Set(values)].sort((a, b) => a - b);

Callers 2

normalizeRuleSetFunction · 0.85
normalizeDnsRulesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected