mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fixed #310
This commit is contained in:
@ -55,7 +55,7 @@ export const shouldFilter = ({
|
|||||||
) // $& means the whole matched string
|
) // $& means the whole matched string
|
||||||
switch (filter.whole_word) {
|
switch (filter.whole_word) {
|
||||||
case true:
|
case true:
|
||||||
if (new RegExp('\\B' + escapedPhrase + '\\B').test(text)) {
|
if (new RegExp('\\b' + escapedPhrase + '\\b').test(text)) {
|
||||||
shouldFilter = true
|
shouldFilter = true
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
@ -100,6 +100,7 @@ export const shouldFilter = ({
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
status.spoiler_text && parser.write(status.spoiler_text)
|
||||||
parser.write(status.content)
|
parser.write(status.content)
|
||||||
parser.end()
|
parser.end()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user