mirror of
https://github.com/orhun/systeroid
synced 2024-07-22 02:45:19 +00:00
fix(app): trim the values while processing
This commit is contained in:
parent
6aa07aefc3
commit
0974e87cf2
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue