diff --git a/src/pretix/static/pretixbase/js/deanonymize_email.js b/src/pretix/static/pretixbase/js/deanonymize_email.js index 9e7a25748..93917bab2 100644 --- a/src/pretix/static/pretixbase/js/deanonymize_email.js +++ b/src/pretix/static/pretixbase/js/deanonymize_email.js @@ -1,7 +1,7 @@ document.addEventListener('DOMContentLoaded', function () { document.querySelectorAll('a[href^="mailto:"]').forEach(function (link) { // Replace [at] with @ and the [dot] with . in both the href and the displayed text (if needed) - link.href = link.href.replace('[at]', '@').replace('[dot]', '.') - link.textContent = link.textContent.replace('[at]', '@').replace('[dot]', '.') + link.href = link.href.replace('[at]', '@').replaceAll('[dot]', '.') + link.textContent = link.textContent.replace('[at]', '@').replaceAll('[dot]', '.') }) })