Skip to content

Commit

Permalink
add string escaping removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Orciument committed Apr 14, 2024
1 parent 5b3b004 commit 0d672d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grafzahl/language/lang_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ pub fn parse_line(line: &String) -> Result<Language, String> {
fn parse_array(raw: &str) -> Vec<String> {
raw.split(",")
.map(|x| x.trim())
.map(|x1| x1[1..x1.len() - 1].to_string())
.map(|x1| x1[1..x1.len() - 1].replace("\\\"", "\""))
.collect()
}

0 comments on commit 0d672d9

Please sign in to comment.