Improve NFC history readers and prepare production build
This commit is contained in:
@ -25,8 +25,8 @@ public class ByteArrayAndHexHelper {
|
||||
public static func hex(from string: String) -> Data {
|
||||
.init(stride(from: 0, to: string.count, by: 2).map {
|
||||
string[string.index(string.startIndex, offsetBy: $0) ... string.index(string.startIndex, offsetBy: $0 + 1)]
|
||||
}.map {
|
||||
UInt8($0, radix: 16)!
|
||||
}.compactMap {
|
||||
UInt8($0, radix: 16)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user