JsBarcode
JsBarcode copied to clipboard
I meet a problem about code128
If the text structure is like this:
C(n)A(1)B(n) OR C(n)B(1)A(n)
the encoding will calculate incorrectly.
<img id="barcode1"/>
<script>JsBarcode("#barcode1", "12345678"+"\x08" + "s");</script>
![image](https://user-images.githubusercontent.com/45529922/158579694-7c34f5e5-b27f-47ca-acda-3f90ee02d4a0.png)
the barcode cannot be scan correctly.
I think the problem is in auto.js :
the matched character should not be replaced ,if before it is CODEC。
because you haven't process the condition that set is SET_C , so the CODEA character will be treated as CODEC