Skip to content

Commit

Permalink
Fix perspective-viewer filter dropdown for values with double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
texodus committed Jan 6, 2022
1 parent 29ae339 commit dfb7b89
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rust/perspective-viewer/src/rust/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,13 @@ impl Session {

Ok(csv
.lines()
.map(|x| (if x.len() > 1 { &x[1..x.len() - 1] } else { x }).to_owned())
.map(|x| {
if x.len() > 1 {
str::replace(&x[1..x.len() - 1], "\"\"", "\"")
} else {
x.to_owned()
}
})
.skip(2)
.collect::<Vec<String>>())
}
Expand Down

0 comments on commit dfb7b89

Please sign in to comment.