diff --git a/src/client/app/common/scripts/should-mute-note.ts b/src/client/app/common/scripts/should-mute-note.ts index 8a6430b1d..42e167915 100644 --- a/src/client/app/common/scripts/should-mute-note.ts +++ b/src/client/app/common/scripts/should-mute-note.ts @@ -4,7 +4,8 @@ export default function(me, settings, note) { const includesMutedWords = (text: string) => text - ? settings.mutedWords.some(q => q.length > 0 && !q.some(word => !text.includes(word))) + ? settings.mutedWords.some(q => q.length > 0 && !q.some(word => + word.startsWith('/') && word.endsWith('/') ? !(new RegExp(word.substr(1, word.length - 2)).test(text)) : !text.includes(word))) : false; return (