fix filter search index being too strict when looking for line breaks ()

remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
codl 2018-01-21 13:23:17 +01:00 committed by Eugen Rochko
parent d613dda91d
commit cfd2b06821
1 changed files with 1 additions and 1 deletions
app/javascript/mastodon/reducers

View File

@ -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;