Linkify messages with unicode drawing characters
This commit is contained in:
@@ -90,9 +90,6 @@ export function shouldLinkifyMessage(
|
||||
if (DIRECTIONAL_OVERRIDES.test(message)) {
|
||||
return false;
|
||||
}
|
||||
if (UNICODE_DRAWING.test(message)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -187,6 +184,10 @@ export function isLinkSneaky(href: string): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (UNICODE_DRAWING.test(href)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
const url = maybeParseUrl(href);
|
||||
|
||||
// If we can't parse it, it's sneaky.
|
||||
|
Reference in New Issue
Block a user