MCPcopy Create free account
hub / github.com/openai/plugins / countMatches

Function countMatches

plugins/plugin-eval/src/evaluators/typescript.js:4–6  ·  view source on GitHub ↗
(text, expression)

Source from the content-addressed store, hash-verified

2import { readText, relativePath } from "../lib/files.js";
3
4function countMatches(text, expression) {
5 return (text.match(expression) || []).length;
6}
7
8function countDecisionPoints(text) {
9 return (

Callers 3

countDecisionPointsFunction · 0.70
detectFunctionsFunction · 0.70
analyzeTypeScriptFilesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected