From 842179d290589dc45d893d3afd53669512d31f7f Mon Sep 17 00:00:00 2001
From: Palloxin <75091899+Palloxin@users.noreply.github.com>
Date: Sun, 15 Sep 2024 21:57:48 +0200
Subject: [PATCH] forgot
---
android/app/src/main/assets/js/core.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/android/app/src/main/assets/js/core.js b/android/app/src/main/assets/js/core.js
index f67afef9c..a7610ddfe 100644
--- a/android/app/src/main/assets/js/core.js
+++ b/android/app/src/main/assets/js/core.js
@@ -469,7 +469,7 @@ window.addEventListener('DOMContentLoaded', async () => {
.replace(/(?: \s*)+(?=<\/?p\b[^>]*>)/g, '')
.replace(/(?:
\s*)+(?=
\s*
)/g, '') //force max 2 consecutive
, chaining regex
.replace(
- /
\s*
(?:(?=\s*<(?!em>|[iab]>|strong>|span>))|(?<=(?\s*
\s*<\/?br>))/g,
+ /
\s*
(?:(?=\s*<(?!em>|[iab]>|strong>|span>))|(?<=(?\s*
\s*
))/g,
'',
) //look-around double br. If certain tags aren't near, delete the double br.
.replace(/
(?:(?=\s*<\/?p\b[^>]*>)|(?<=<\/?p>\s*
))\s*/g, '');