fix: strip out 0xAD from the comment body before testing for links

This commit is contained in:
Wyatt Johnson
2018-10-23 11:06:31 -06:00
parent 49c7d2eeda
commit 3cabe50a7b
+1 -1
View File
@@ -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',