From 3cabe50a7b1250d7db299a217bd1620ad2ee429c Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Tue, 23 Oct 2018 11:06:31 -0600 Subject: [PATCH] fix: strip out 0xAD from the comment body before testing for links --- services/moderation/phases/links.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/moderation/phases/links.js b/services/moderation/phases/links.js index ec05834b6..c31cf0c13 100644 --- a/services/moderation/phases/links.js +++ b/services/moderation/phases/links.js @@ -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',