logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 94230fe565cf20ba10f6d0cd6f090a4520c174ca
parent: 04ecf44c2f78ae29911027352a3e9fb21187e20c
Author: Noiob <noiob@users.noreply.github.com>
Date:   Tue,  2 Jan 2018 19:35:24 +0100

Fix newlines-to-spaces functionality (#6158)

yay for regexes, amirite

Diffstat:

Mapp/javascript/mastodon/actions/notifications.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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; };