MCPcopy Index your code
hub / github.com/modelcontextprotocol/registry / HasNoSpaces

Function HasNoSpaces

internal/validators/utils.go:29–31  ·  view source on GitHub ↗

HasNoSpaces checks if a string contains no spaces

(s string)

Source from the content-addressed store, hash-verified

27
28// HasNoSpaces checks if a string contains no spaces
29func HasNoSpaces(s string) bool {
30 return !strings.Contains(s, " ")
31}
32
33// extractTemplateVariables extracts template variables from a URL string
34// e.g., "http://{host}:{port}/mcp" returns ["host", "port"]

Callers 1

validatePackageFieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…