fix(core): Ensure ID is a positive integer when fetching execution (#9629)

This commit is contained in:
Iván Ovejero
2024-06-05 13:05:07 +02:00
committed by GitHub
parent f94090b48c
commit 411ffbda7f
3 changed files with 17 additions and 0 deletions

View File

@@ -92,3 +92,5 @@ export function rightDiff<T1, T2>(
* in switch statements or if/else chains.
*/
export const assertNever = (_value: never) => {};
export const isPositiveInteger = (maybeInt: string) => /^[1-9]\d*$/.test(maybeInt);