Rulvar API reference / @rulvar/core / assertSafeRunId
Function: assertSafeRunId()
ts
function assertSafeRunId(runId, context): void;Defined in: packages/core/src/l0/run-id.ts:31
Throws a ConfigError unless runId is a filesystem-safe token: a non-empty string over [A-Za-z0-9._-] that is neither '.' nor '..' (the dot pair passes the alphabet on its own, so it is refused explicitly), no longer than MAX_RUN_ID_LENGTH.
Parameters
| Parameter | Type |
|---|---|
runId | string |
context | string |
Returns
void