Target.hostless: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/ez/target.bend as Target Lines 262-265 of ezx@1.11.0.0/src/ez/target.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/ez/target.bend&start_line=262&end_line=265 import Base # a URL with no host, `file:///srv/repo`, is on this host, and is cached # where `file://localhost/srv/repo` is, rather than at an absolute slug def hostless(+text: String) -> String: Bool.pick(String, String.starts_with(text, "/"), "localhost" ++ text, text) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.starts_with