We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 72b01ba + 5c39112 commit 9e30dbaCopy full SHA for 9e30dba
src/util/isSuspiciousLink.ts
@@ -3,7 +3,7 @@ import { distance } from "fastest-levenshtein";
3
/** Most spam links try to typosquat 'discord' to trick users into thinking the link is safe (ex: "discorde")*/
4
const TYPOSQUAT_TARGET = "discord";
5
6
-function isSuspiciousLink(link, threshold = 3) {
+function isSuspiciousLink(link, threshold = 4) {
7
// get base domain
8
const matches = link.match(/^https?:\/\/(\S+?)\./);
9
if (!matches) return;
0 commit comments