MCPcopy
hub / github.com/SukkaW/Surge / bulkAddDomain

Method bulkAddDomain

Build/lib/rules/base.ts:116–124  ·  view source on GitHub ↗
(domains: Array<string | null>)

Source from the content-addressed store, hash-verified

114 }
115
116 bulkAddDomain(domains: Array<string | null>) {
117 for (let i = 0, len = domains.length; i < len; i++) {
118 const d = domains[i];
119 if (d !== null) {
120 this.domainTrie.add(d);
121 }
122 }
123 return this;
124 }
125
126 addDomainSuffix(domain: string) {
127 if (domain[0] === '.') {

Calls

no outgoing calls

Tested by

no test coverage detected