Browse Source

fix(updater): remove single&double quotes escaping in updater dialog … (#4047)

Amr Bashir 3 years ago
parent
commit
0180dcc812
2 changed files with 6 additions and 3 deletions
  1. 5 0
      .changes/updater-note-body-escape.md
  2. 1 3
      core/tauri/src/updater/mod.rs

+ 5 - 0
.changes/updater-note-body-escape.md

@@ -0,0 +1,5 @@
+---
+"tauri": patch
+---
+
+Fix updater dialog removing single and double quotes from the release notes

+ 1 - 3
core/tauri/src/updater/mod.rs

@@ -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();
 
@@ -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,
     ),
   );