diff --git a/src/index.ts b/src/index.ts index 30fd59a..e261bd7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -500,6 +500,7 @@ function eqIndex(str: string, min: number, max: number) { * Slice out a value between startPod to max. */ function valueSlice(str: string, min: number, max: number) { + if (min >= max) return ""; let start = min; let end = max;