fix(code93): Update encoder func to better handle checksum

- Fix #80
This commit is contained in:
lmazeaud 2024-07-02 17:32:56 +02:00
parent 65580ac6e3
commit d6f8bd41de
1 changed files with 3 additions and 1 deletions

View File

@ -88,7 +88,9 @@ func Encode(content string, includeChecksum bool, fullASCIIMode bool) (barcode.B
}
data := content + string(getChecksum(content, 20))
if includeChecksum {
data += string(getChecksum(data, 15))
}
data = "*" + data + "*"
result := new(utils.BitList)