Skip to content

Commit

Permalink
fixed base64 decode
Browse files Browse the repository at this point in the history
  • Loading branch information
SymmetricChaos committed Dec 31, 2024
1 parent 9d0e170 commit 7b820de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codes/src/binary_to_text/base64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl Code for Base64 {
let mut bytes = text
.bytes()
.take_while(|n| n != &PAD)
.filter(|b| b.is_ascii_whitespace())
.filter(|b| !b.is_ascii_whitespace())
.map(|n| {
map.get_by_right(&n)
.ok_or_else(|| CodeError::invalid_input_char(n as char))
Expand Down

0 comments on commit 7b820de

Please sign in to comment.