def name_char
import near-v-framework@0.4.0.0/domain/architecture/system/release/ops.bend as Opsimport 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))