MCPcopy Create free account
hub / github.com/github/awesome-copilot / normalizePathValue

Function normalizePathValue

eng/external-plugin-approval.mjs:35–40  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

33}
34
35function normalizePathValue(value) {
36 return String(value ?? "")
37 .trim()
38 .replace(/^\/+|\/+$/g, "")
39 .toLowerCase();
40}
41
42export function parseDecisionCommand(body) {
43 const match = String(body ?? "").match(/(?:^|\n)\s*\/(approve|reject)(?=\s|$)([\s\S]*)$/i);

Callers 1

pluginsMatchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected