diff --git a/src/parser.rs b/src/parser.rs index 97a4bf6..3824914 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -33,7 +33,7 @@ fn parse_initial_state(char_splitted_command_line: &mut Vec, current_arg: } fn split_string_in_chars(string_to_split: &String) -> Vec { - string_to_split.chars().rev().collect() + string_to_split.trim().chars().rev().collect() } pub fn parse(command_line: &String) -> Vec {