def hostless
import ezx@1.11.0.0/src/ez/target.bend as Targetimport Base
262# a URL with no host, `file:///srv/repo`, is on this host, and is cached
263# where `file://localhost/srv/repo` is, rather than at an absolute slug
264def hostless(+text: String) -> String:
265 Bool.pick(String, String.starts_with(text, "/"), "localhost" ++ text, text)