MCPcopy Create free account
hub / github.com/zxlie/FeHelper / testRulePattern

Function testRulePattern

apps/page-monkey/index.js:439–442  ·  view source on GitHub ↗
(pattern, url)

Source from the content-addressed store, hash-verified

437 removeExclude(i) { this.editCM.mExcludes.splice(i, 1); this.markUnsaved(); },
438
439 testRulePattern(pattern, url) {
440 if (!url) return 'empty';
441 return matchOnePattern(pattern, url) ? 'match' : 'miss';
442 },
443
444 setRunAt(v) { this.editCM.mRunAt = v; this.markUnsaved(); },
445 toggleGrant(g) {

Callers

nothing calls this directly

Calls 1

matchOnePatternFunction · 0.70

Tested by

no test coverage detected