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

Method addInclude

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

Source from the content-addressed store, hash-verified

61
62 // 测试用
63 public addInclude(rulePattern: string, uuid: T) {
64 // @include xxxxx
65 const rules = extractUrlPatterns([rulePattern].map((e) => `@include ${e}`));
66 this.addRules(uuid, rules);
67 }
68
69 // 测试用
70 public addMatch(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