From 544ca5076abb644b02454956cd03d1d7207d3867 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Sat, 28 Oct 2023 15:15:52 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20:=20trimmer=20la=20cha=C3=AEne=20de=20c?= =?UTF-8?q?aract=C3=A8res=20dans=20le=20parser?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {