Ajout : trimmer la chaîne de caractères dans le parser
This commit is contained in:
parent
6eb0a0b0c6
commit
544ca5076a
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ fn parse_initial_state(char_splitted_command_line: &mut Vec<char>, current_arg:
|
|||
}
|
||||
|
||||
fn split_string_in_chars(string_to_split: &String) -> Vec<char> {
|
||||
string_to_split.chars().rev().collect()
|
||||
string_to_split.trim().chars().rev().collect()
|
||||
}
|
||||
|
||||
pub fn parse(command_line: &String) -> Vec<String> {
|
||||
|
|
Reference in a new issue