Base.valid_host: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/store/base.bend as Base Lines 161-164 of cswap-bend-cli@0.1.0.0/store/base.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/store/base.bend&start_line=161&end_line=164 import Base # host = prefix.tld: the last dot-separated part is 2+ letters and what is # left of it is a non-empty run of host characters. def valid_host(+segs: List<&2, String>, +host: String) -> Bool: valid_host2(List.last(&2, String, segs), List.length(&2, String, segs), all_chars(host, False{})) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.last https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.length https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/store/base.bend&name=all_chars https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/store/base.bend&name=valid_host2