mirror of
https://github.com/wassname/talk.git
synced 2026-10-29 13:40:57 +08:00
fix: strip out 0xAD from the comment body before testing for links
This commit is contained in:
1 parent
49c7d2eeda
commit
3cabe50a7b
1 file changed
+1
-1
@@ -11,7 +11,7 @@ module.exports = (
|
||||
},
|
||||
}
|
||||
) => {
|
||||
if (premodLinksEnable && linkify.test(comment.body)) {
|
||||
if (premodLinksEnable && linkify.test(comment.body.replace(/\xAD/g, ''))) {
|
||||
// Add the flag related to Trust to the comment.
|
||||
return {
|
||||
status: 'SYSTEM_WITHHELD',
|
||||
|
||||
Reference in new issue
Block a user