Skip to content

Commit

Permalink
fix(updater): remove single&double quotes escaping in updater dialog … (
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed May 4, 2022
1 parent 615f48d commit 0180dcc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changes/updater-note-body-escape.md
@@ -0,0 +1,5 @@
---
"tauri": patch
---

Fix updater dialog removing single and double quotes from the release notes
4 changes: 1 addition & 3 deletions core/tauri/src/updater/mod.rs
Expand Up @@ -848,8 +848,6 @@ async fn prompt_for_install<R: Runtime>(
body: &str,
pubkey: String,
) -> Result<()> {
// remove single & double quote
let escaped_body = body.replace(&['\"', '\''][..], "");
let windows = update.app.windows();
let parent_window = windows.values().next();

Expand All @@ -865,7 +863,7 @@ Would you like to install it now?
Release Notes:
{}"#,
app_name, update.version, update.current_version, escaped_body,
app_name, update.version, update.current_version, body,
),
);

Expand Down

0 comments on commit 0180dcc

Please sign in to comment.