Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
221
function
isValidWorkerName(name: string): boolean {
222
return
/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/.test(name);
223
}
224
225
function
isAlreadyExists(cause: unknown): boolean {
226
return
(
Callers
1
handleCreate
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected