ids.py
python
sha256:c079680aa72b38cf20f7891daeadbb28f6ec71301dff7c1973565401e6f23a34
docs: align public documentation and website with bounded v1
Human
minor
⚠ breaking
8 days ago
| 1 | """Step and template id validation (§K9.3).""" |
| 2 | |
| 3 | from __future__ import annotations |
| 4 | |
| 5 | import re |
| 6 | |
| 7 | STEP_ID_PATTERN = re.compile(r"^[a-z][a-z0-9_-]{0,63}$") |
| 8 | |
| 9 | |
| 10 | def is_valid_step_id(value: str) -> bool: |
| 11 | """Return True when ``value`` matches the frozen id regex.""" |
| 12 | return bool(STEP_ID_PATTERN.match(value)) |
File History
1 commit
sha256:c079680aa72b38cf20f7891daeadbb28f6ec71301dff7c1973565401e6f23a34
docs: align public documentation and website with bounded v1
Human
minor
⚠
8 days ago