MCPcopy
hub / github.com/statelyai/xstate / sanitizeStateId

Function sanitizeStateId

packages/core/src/scxml.ts:26–28  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

24import { mapValues } from './utils.ts';
25
26export function sanitizeStateId(id: string) {
27 return id.replace(/\./g, '$');
28}
29
30function appendWildcards(state: AnyStateNode) {
31 const newTransitions: typeof state.transitions = new Map();

Callers 3

runTestToCompletionFunction · 0.90
getTargetsFunction · 0.85
toConfigFunction · 0.85

Calls

no outgoing calls

Tested by 1

runTestToCompletionFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…