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

Function isHyphenCase

plugins/plugin-eval/src/evaluators/plugin.js:8–10  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

6import { pathExists, readJson, relativePath } from "../lib/files.js";
7
8function isHyphenCase(value) {
9 return /^[a-z0-9-]+$/.test(value) && !value.startsWith("-") && !value.endsWith("-") && !value.includes("--");
10}
11
12export async function evaluatePlugin(pluginRoot) {
13 const manifestPath = path.join(pluginRoot, ".codex-plugin", "plugin.json");

Callers 1

evaluatePluginFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected