* 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)
| 3585 | * Used to prefer the latest version when the same trigger name has v1 and v2 variants. |
| 3586 | */ |
| 3587 | function 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. |
no outgoing calls
no test coverage detected