Skip to content

Commit

Permalink
Shortening regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Palloxin authored Sep 5, 2024
1 parent 3c46dd4 commit 858a94b
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;)(?<=<p[^>]*>\s*\1)/g, '')
.replace(/(?:<br>\s*)+(?=<br>\s*<br>)/g, '')
.replace(
/(?:<br>\s*<\/?br>\s*)+(?:(?=<(?!br>))|(?<=(?<!<br)>\s*<br>\s*<\/?br>\s*))/g,
/(?:<br>\s*<\/?br>\s*)+(?:(?=<)|(?<=>\s*<br>\s*<\/?br>\s*))/g,
'',
)
.replace(
Expand Down

0 comments on commit 858a94b

Please sign in to comment.