mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-23 01:48:13 +01:00
Simplify linkification filter - check for ASCII/non-ASCII only
This commit is contained in:
committed by
Ken Powers
parent
f693768bcf
commit
f5be32ba14
@@ -360,6 +360,12 @@ describe('Link previews', () => {
|
||||
assert.strictEqual(actual, true);
|
||||
});
|
||||
|
||||
it('returns true for ASCII and non-ASCII mix', () => {
|
||||
const link = 'https://www.аррӏе.com';
|
||||
const actual = isLinkSneaky(link);
|
||||
assert.strictEqual(actual, true);
|
||||
});
|
||||
|
||||
it('returns true for Latin + High Greek domain', () => {
|
||||
const link = `https://www.apple${String.fromCodePoint(0x101a0)}.com`;
|
||||
const actual = isLinkSneaky(link);
|
||||
|
||||
Reference in New Issue
Block a user