Skip to content

Commit d878ded

Browse files
committed
fix: exclude asterisk from code39SupportedCharacters
The asterisk character is used as the start/stop character in Code 39 barcodes and should not be included in the set of supported characters.
1 parent 38aac09 commit d878ded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Code39/Code39.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ func encodeToCode39(_ input: String) -> [BarWidth] {
7474
return encodedBarcode
7575
}
7676

77-
public let code39SupportedCharacters: Set<Character> = Set(code39Patterns.keys)
77+
public let code39SupportedCharacters: Set<Character> = Set(code39Patterns.keys.filter { $0 != "*" })

0 commit comments

Comments
 (0)