MCPcopy Index your code
hub / github.com/simstudioai/sim / triggerVersionOrdinal

Function triggerVersionOrdinal

scripts/generate-docs.ts:3587–3590  ·  view source on GitHub ↗

* Return the numeric version suffix of a trigger ID (e.g. `_v2` → 2, none → 1). * Used to prefer the latest version when the same trigger name has v1 and v2 variants.

(id: string)

Source from the content-addressed store, hash-verified

3585 * Used to prefer the latest version when the same trigger name has v1 and v2 variants.
3586 */
3587function triggerVersionOrdinal(id: string): number {
3588 const m = /_v(\d+)$/.exec(id)
3589 return m ? Number.parseInt(m[1], 10) : 1
3590}
3591
3592/**
3593 * Group triggers by provider; triggers within each group are sorted alphabetically.

Callers 1

groupTriggersByProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected