diff --git a/files/assets/js/core.js b/files/assets/js/core.js index 95f7569ef3..47eee7321f 100644 --- a/files/assets/js/core.js +++ b/files/assets/js/core.js @@ -283,6 +283,10 @@ function showmore() { btn.innerHTML = 'SHOW LESS' } +for (const element of document.getElementsByClassName('showmore')) { + element.onclick = showmore; +} + function formatDate(d) { let year = d.getFullYear(); let monthAbbr = d.toLocaleDateString('en-us', {month: 'short'}); diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 7da09e702e..c3e378ec0e 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -411,7 +411,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_marseys sanitized = sanitized.replace('\n','') if showmore and len(sanitized) > 3500: - sanitized = showmore_regex.sub(r'\1