mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Merge pull request #70 from jordyd/base64
Fix base64 due to from_utf8 and replace changes
This commit is contained in:
commit
c00c608567
1 changed files with 2 additions and 2 deletions
|
@ -82,9 +82,9 @@ fn main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn decode(input: &mut Reader, ignore_garbage: bool) {
|
fn decode(input: &mut Reader, ignore_garbage: bool) {
|
||||||
let mut to_decode = str::from_utf8_owned(input.read_to_end());
|
let mut to_decode = str::from_utf8_owned(input.read_to_end()).unwrap();
|
||||||
|
|
||||||
to_decode = to_decode.replace("\n", "");
|
to_decode = str::replace(to_decode, "\n", "");
|
||||||
|
|
||||||
if ignore_garbage {
|
if ignore_garbage {
|
||||||
let standard_chars =
|
let standard_chars =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue