fix(processing bug): add '\n' string literal to avoid rejecting the right input binary code with a break line
This commit is contained in:
parent
a7cf11737a
commit
cedb844826
|
@ -9,8 +9,8 @@ const ASCII_ZERO_CHAR_POSITION: u8 = 48;
|
||||||
pub fn processing_input(input: impl Into<String>) -> String {
|
pub fn processing_input(input: impl Into<String>) -> String {
|
||||||
input
|
input
|
||||||
.into()
|
.into()
|
||||||
.split_ascii_whitespace()
|
.split(&[' ', '\n'][..])
|
||||||
.filter(|&x| !x.is_empty())
|
.filter(|x| !x.is_empty())
|
||||||
.fold(String::new(), |c: String, n: &str| c + n)
|
.fold(String::new(), |c: String, n: &str| c + n)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue