Skip to content

Commit

Permalink
forgot
Browse files Browse the repository at this point in the history
  • Loading branch information
Palloxin authored Sep 15, 2024
1 parent f999c49 commit 842179d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/app/src/main/assets/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ window.addEventListener('DOMContentLoaded', async () => {
.replace(/(?:&nbsp;\s*)+(?=<\/?p\b[^>]*>)/g, '')
.replace(/(?:<br>\s*)+(?=<br>\s*<br>)/g, '') //force max 2 consecutive <br>, chaining regex
.replace(
/<br>\s*<br>(?:(?=\s*<(?!em>|[iab]>|strong>|span>))|(?<=(?<!\/em|\/[iab]|\/strong|\/span)>\s*<br>\s*<\/?br>))/g,
/<br>\s*<br>(?:(?=\s*<(?!em>|[iab]>|strong>|span>))|(?<=(?<!\/em|\/[iab]|\/strong|\/span)>\s*<br>\s*<br>))/g,
'',
) //look-around double br. If certain tags aren't near, delete the double br.
.replace(/<br>(?:(?=\s*<\/?p\b[^>]*>)|(?<=<\/?p>\s*<br>))\s*/g, '');
Expand Down

0 comments on commit 842179d

Please sign in to comment.