Skip to main content

is_worker_name

Function is_worker_name 

Source
pub fn is_worker_name(name: &str) -> bool
Expand description

Whether name can be a Worker’s key or script name: Cloudflare’s own grammar, 1 to 63 lowercase letters, digits and -, not starting or ending with one. It becomes a directory, a command-line argument and a ledger key, so nothing else may reach them.