From 17fac52abaf39fc96b12db62ed29e867f2c8eb11 Mon Sep 17 00:00:00 2001 From: webzwo0i Date: Mon, 14 Sep 2020 13:00:42 +0200 Subject: [PATCH] revert title replacement for the moment --- src/node/handler/ImportHandler.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/node/handler/ImportHandler.js b/src/node/handler/ImportHandler.js index 9109853e6..4fc2e686c 100644 --- a/src/node/handler/ImportHandler.js +++ b/src/node/handler/ImportHandler.js @@ -213,13 +213,10 @@ async function doImport(req, res, padId) * title and comment it out independently on the classes that are set on it. * * @todo what happens if /)){ - text = text.replace("<title", "<!-- <title"); - text = text.replace("","-->"); - } else { - text = text.replace(/]*\/>/,''); - } + text = text.replace("","-->"); // node on windows has a delay on releasing of the file lock. // We add a 100ms delay to work around this