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--;