def name_char

near-v-framework@0.4.0.0 · domain/architecture/system/release/ops.bend:144

import near-v-framework@0.4.0.0/domain/architecture/system/release/ops.bend as Ops
import Base

144# ---- the hub's path rule: every segment is [A-Za-z_][A-Za-z0-9_]* (the file name also ends in .bend, .c or
145# .js, or is a LICENSE), under 256 characters ----
146def name_char(+c: Char, first: Bool) -> Bool:
147  Char.is_lower(c) || Char.is_upper(c) || Char.is_eq(c, '_') || (Bool.not(first) && Char.is_digit(c))

Uses (9)

Used by (1)