Remember to trim string to remove whitespace
This commit is contained in:
parent
9a7700dee4
commit
3070e42945
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ impl Device{
|
|||
if !line.contains(':') { continue; }
|
||||
let (section,value) = line.split_once(':').unwrap();
|
||||
if section.contains(SERIAL_HEADER){
|
||||
self.serial = value.replace("\"","");
|
||||
self.serial = value.trim().replace("\"","");
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue