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

Method addMatch

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

Source from the content-addressed store, hash-verified

68
69 // 测试用
70 public addMatch(rulePattern: string, uuid: T) {
71 // @match xxxxx
72 const rules = extractUrlPatterns([rulePattern].map((e) => `@match ${e}`));
73 this.addRules(uuid, rules);
74 }
75
76 // 测试用
77 public addExclude(rulePattern: string, uuid: T) {

Callers 1

match.test.tsFile · 0.80

Calls 2

addRulesMethod · 0.95
extractUrlPatternsFunction · 0.90

Tested by

no test coverage detected