From 903e117a09160a4c3164e73f3e21df41a022da79 Mon Sep 17 00:00:00 2001 From: EGOKM <111112114+EGOKM@users.noreply.github.com> Date: Thu, 4 Jan 2024 08:01:37 +0100 Subject: [PATCH 1/2] Update utils.ts dimIndex now allows starting from zero --- src/utils.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index 8f19cb9..e567e49 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -85,9 +85,12 @@ export function parseDimIndex(spec: string, count: number): string[] { const start = parts[0]; const end = parts[1]; - if (!start || !end) { + if ( start < 0 || end < 0 || end Date: Thu, 4 Jan 2024 09:19:32 +0100 Subject: [PATCH 2/2] added Nikitas Hint --- src/utils.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index e567e49..6bdfb79 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -85,13 +85,15 @@ export function parseDimIndex(spec: string, count: number): string[] { const start = parts[0]; const end = parts[1]; - if ( start < 0 || end < 0 || end