5
This commit is contained in:
parent
c070dfa4cf
commit
585228f4b4
@ -10,7 +10,7 @@ fn parse_dpkg_output(output: &str) -> Vec<Package> {
|
||||
.lines()
|
||||
.filter_map(|line| {
|
||||
let mut parts = line.split('\t');
|
||||
let name = parts.next()?.replace('"', "").to_string();
|
||||
let name = parts.next()?.replace(['"', '\\'], "").to_string();
|
||||
let version = parts.next()?.to_string();
|
||||
Some(Package { name, version })
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user