about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorNoiob <noiob@users.noreply.github.com>2018-01-02 19:35:24 +0100
committerEugen Rochko <eugen@zeonfederated.com>2018-01-02 19:35:24 +0100
commit94230fe565cf20ba10f6d0cd6f090a4520c174ca (patch)
treef39c173cb369324186be729ac2b253d88132ff4e /app
parent04ecf44c2f78ae29911027352a3e9fb21187e20c (diff)
Fix newlines-to-spaces functionality (#6158)
yay for regexes, amirite
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/actions/notifications.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/actions/notifications.js b/app/javascript/mastodon/actions/notifications.js
index b24ac8b73..502690045 100644
--- a/app/javascript/mastodon/actions/notifications.js
+++ b/app/javascript/mastodon/actions/notifications.js
@@ -31,7 +31,7 @@ const fetchRelatedRelationships = (dispatch, notifications) => {
 
 const unescapeHTML = (html) => {
   const wrapper = document.createElement('div');
-  html = html.replace(/<br \/>|<br>|\n/, ' ');
+  html = html.replace(/<br \/>|<br>|\n/g, ' ');
   wrapper.innerHTML = html;
   return wrapper.textContent;
 };