about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorcodl <codl@codl.fr>2018-01-21 13:23:17 +0100
committerEugen Rochko <eugen@zeonfederated.com>2018-01-21 13:23:17 +0100
commitcfd2b06821a12f6b4aae427dbb9e6707d1cff9dc (patch)
tree1d5f9bcc5f2be76841f959ede883825393b81c56 /app
parentd613dda91d1f1595f73a967eb01c41b07cddacbe (diff)
fix filter search index being too strict when looking for line breaks (#6318)
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/reducers/statuses.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/reducers/statuses.js b/app/javascript/mastodon/reducers/statuses.js
index 5120b2b67..cc0d4dacd 100644
--- a/app/javascript/mastodon/reducers/statuses.js
+++ b/app/javascript/mastodon/reducers/statuses.js
@@ -54,7 +54,7 @@ const normalizeStatus = (state, status) => {
     normalStatus.reblog = status.reblog.id;
   }
 
-  const searchContent = [status.spoiler_text, status.content].join('\n\n').replace(/<br \/>/g, '\n').replace(/<\/p><p>/g, '\n\n');
+  const searchContent = [status.spoiler_text, status.content].join('\n\n').replace(/<br\s*\/?>/g, '\n').replace(/<\/p><p>/g, '\n\n');
 
   const emojiMap = normalStatus.emojis.reduce((obj, emoji) => {
     obj[`:${emoji.shortcode}:`] = emoji;