Skip to content

Commit

Permalink
fix: exclude asterisk from code39SupportedCharacters
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jiahan-wu committed Jun 8, 2024
1 parent 38aac09 commit d878ded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Code39/Code39.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ func encodeToCode39(_ input: String) -> [BarWidth] {
return encodedBarcode
}

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

0 comments on commit d878ded

Please sign in to comment.