def hub.part

ezx@1.11.0.0 · src/ez/named.bend:195

import ezx@1.11.0.0/src/ez/named.bend as Named
import Base
import ezx@1.11.0.0/src/pkg/pkg.bend as K

195# the name part of a `<name>@<version>`, what comes before its `@`. It is
196# a-z, 0-9 and `-`, so it is a TOML bare key as it is.
197def hub.part(+nv: String) -> String:
198  K.word(String.split(nv, '@'), 0n)

Uses (4)

Used by (2)