MCPcopy Create free account
hub / github.com/cloudflare/computer / isValidWorkerName

Function isValidWorkerName

examples/artifacts/src/index.ts:221–223  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

219}
220
221function isValidWorkerName(name: string): boolean {
222 return /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/.test(name);
223}
224
225function isAlreadyExists(cause: unknown): boolean {
226 return (

Callers 1

handleCreateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected