mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
Fix double quotes being escaped twice in dupe search
maybe_quote() already escapes double quotes.
This commit is contained in:
parent
6548ebb516
commit
52fac0557a
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ fn write_rated(days: &u32, ease: &RatingKind) -> String {
|
||||||
|
|
||||||
/// Escape double quotes and backslashes: \"
|
/// Escape double quotes and backslashes: \"
|
||||||
fn write_dupe(notetype_id: &NotetypeId, text: &str) -> String {
|
fn write_dupe(notetype_id: &NotetypeId, text: &str) -> String {
|
||||||
let esc = text.replace(r"\", r"\\").replace('"', r#"\""#);
|
let esc = text.replace(r"\", r"\\");
|
||||||
maybe_quote(&format!("dupe:{},{}", notetype_id, esc))
|
maybe_quote(&format!("dupe:{},{}", notetype_id, esc))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue