MCPcopy Index your code
hub / github.com/PatchMon/PatchMon / isValidPackageName

Function isValidPackageName

server-source-code/internal/handler/patching.go:142–144  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

140}
141
142func isValidPackageName(s string) bool {
143 return len(s) > 0 && len(s) <= 256 && packageNameRegex.MatchString(s)
144}
145
146// ServePatchOutput handles POST /patching/runs/:id/output (agent-facing, API key auth).
147func (h *PatchingHandler) ServePatchOutput(w http.ResponseWriter, r *http.Request) {

Callers 1

TriggerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected