def lead

ezx@1.11.0.0 · src/ledger/ignore.bend:50

import ezx@1.11.0.0/src/ledger/ignore.bend as Ignore
import Base

50# one leading `/`, which anchors a pattern to the file's own directory and
51# so changes nothing for a `.gitignore` at the root
52def lead(+pat: String) -> String:
53  Bool.pick(String, String.starts_with(pat, "/"), String.drop(pat, 1n), pat)

Uses (4)

Used by (1)