def valid_host

cswap-bend-cli@0.1.0.0 · store/base.bend:161

import cswap-bend-cli@0.1.0.0/store/base.bend as Base
import Base

161# host = prefix.tld: the last dot-separated part is 2+ letters and what is
162# left of it is a non-empty run of host characters.
163def valid_host(+segs: List<&2, String>, +host: String) -> Bool:
164  valid_host2(List.last(&2, String, segs), List.length(&2, String, segs), all_chars(host, False{}))

Uses (7)

Used by (1)