def redirect.dots.end
import emerging-ezhttp@0.21.0.0/src/redirect.bend as Redirectimport Base
48# a path that ends in `.` or `..` keeps its trailing `/`: an empty last segment
49def redirect.dots.end(last: Bool, out: List<&2, String>) -> List<&2, String>:
50 match last:
51 case True{}:
52 "" <> out
53 case False{}:
54 out