From 9eafad3032cd9661d0f7f6c9e5e2a953549e5d96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Pol=C3=A1=C5=A1ek?= Date: Sun, 27 Aug 2023 22:26:16 +0200 Subject: [PATCH] Fix merge mistake in Code128Reader --- src/core/oned/Code128Reader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/oned/Code128Reader.ts b/src/core/oned/Code128Reader.ts index 72c5bb68..9f21b211 100644 --- a/src/core/oned/Code128Reader.ts +++ b/src/core/oned/Code128Reader.ts @@ -199,7 +199,7 @@ export default class Code128Reader extends OneDReader { } patternStart += counters[0] + counters[1]; - counters = counters.slice(2, counters.length - 1); + counters = counters.slice(2, counters.length); counters[counterPosition - 1] = 0; counters[counterPosition] = 0; counterPosition--;