Skip to content

Commit

Permalink
Collection+HexDump: 0x7F is a non-printable character as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyl committed Mar 22, 2023
1 parent 16fa3be commit 9d2b24f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extension Collection where Element == UInt8 {

var asciiChunk = ""
for byte in chunk {
asciiChunk += (byte > 0x1F && byte < 0x80) ? String(UnicodeScalar(byte)) : "."
asciiChunk += (byte > 0x1F && byte < 0x7F) ? String(UnicodeScalar(byte)) : "."
}
while asciiChunk.count < width { asciiChunk += " " }

Expand Down

0 comments on commit 9d2b24f

Please sign in to comment.