MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / addExclude

Method addExclude

src/pkg/utils/match.ts:77–81  ·  view source on GitHub ↗
(rulePattern: string, uuid: T)

Source from the content-addressed store, hash-verified

75
76 // 测试用
77 public addExclude(rulePattern: string, uuid: T) {
78 // @exclude xxxxx
79 const rules = extractUrlPatterns([rulePattern].map((e) => `@exclude ${e}`));
80 this.addRules(uuid, rules);
81 }
82
83 public setupSorter(sorter: Partial<Record<string, number>> | null) {
84 if (this.sorter !== sorter) {

Callers 1

match.test.tsFile · 0.80

Calls 2

addRulesMethod · 0.95
extractUrlPatternsFunction · 0.90

Tested by

no test coverage detected