Merge pull request #81 from imaginoCDP/fix-code93
fix(code93): Update encoder func to better handle checksum
This commit is contained in:
commit
83789dfea1
|
@ -88,7 +88,9 @@ func Encode(content string, includeChecksum bool, fullASCIIMode bool) (barcode.B
|
||||||
}
|
}
|
||||||
|
|
||||||
data := content + string(getChecksum(content, 20))
|
data := content + string(getChecksum(content, 20))
|
||||||
|
if includeChecksum {
|
||||||
data += string(getChecksum(data, 15))
|
data += string(getChecksum(data, 15))
|
||||||
|
}
|
||||||
|
|
||||||
data = "*" + data + "*"
|
data = "*" + data + "*"
|
||||||
result := new(utils.BitList)
|
result := new(utils.BitList)
|
||||||
|
|
Loading…
Reference in New Issue