From 115525260482b7d46e7c822128030a7ad99c481a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Tue, 12 Jan 2021 20:09:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/tools/socket.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 594cbb7..e5e94fa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "org.bytedo.epub", - "version": "1.0.1", + "version": "1.1.0", "description": "E-pub Reader", "main": "src/main.js", "scripts": { diff --git a/src/tools/socket.js b/src/tools/socket.js index 70c0a6b..1febe98 100644 --- a/src/tools/socket.js +++ b/src/tools/socket.js @@ -86,6 +86,10 @@ module.exports = function(app, createViewWindow) { .replace(/
/g, '')
                     .replace(/<\/code><\/pre>/g, '')
 
+                  htm = htm
+                    .replace(/
/g, '')
+                    .replace(/<\/pre>/g, '')
+
                   htm = htm.replace(/([\w\W]*?)<\/wc-code>/g, function(
                     m,
                     s