Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: use full regex to migrate

thecodrr12a6ad595f75
diff --git a/packages/core/migrations.js b/packages/core/migrations.js
index ff617a4d2..4f9014b9f 100644
--- a/packages/core/migrations.js
+++ b/packages/core/migrations.js
@@ -78,11 +78,8 @@ function removeToxClassFromChecklist(html) {
const regex = /<div class="table-container".*<\/table><\/div>/gm;
function decodeWrappedTableHtml(html) {
- return html.replaceAll(
- /<div class="table-container".*\/div>$/gm,
- (match) => {
- const html = decodeHTML5(match);
- return html;
- }
- );
+ return html.replaceAll(regex, (match) => {
+ const html = decodeHTML5(match);
+ return html;
+ });
}