fix(app): trim the values while processing

This commit is contained in:
Orhun Parmaksız 2021-11-21 00:46:01 +03:00
parent 6aa07aefc3
commit 0974e87cf2
No known key found for this signature in database
GPG key ID: F83424824B3E4B90

View file

@ -80,7 +80,7 @@ impl<'a> App<'a> {
let fields = param_name
.split('=')
.take(2)
.map(String::from)
.map(|v| v.trim().to_string())
.collect::<Vec<String>>();
param_name = fields[0].to_string();
Some(fields[1].to_string())