Plan.semver.chars: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/pub/plan.bend as Plan Lines 164-173 of ezx@1.11.0.0/src/pub/plan.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/pub/plan.bend&start_line=164&end_line=173 import Base # whether every character of a version is a digit or a dot. A pre-release # (`1.0.0-rc.1`) or build (`1.0.0+abc`) suffix holds a character that is # neither, so this is where one is refused, whatever follows it. def semver.chars(text: String) -> Bool: match text: case SNil{}: True{} case SCon{+h, t}: +rest = semver.chars(t) Bool.and(semver.char(h), rest) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pub/plan.bend&name=semver.char