Linkify URLs containing @
This commit is contained in:
parent
d387481001
commit
980862768b
3 changed files with 26 additions and 6 deletions
|
@ -391,5 +391,16 @@ describe('Link previews', () => {
|
|||
const link = 'r.id^s.id';
|
||||
assert.strictEqual(isLinkSneaky(link), true);
|
||||
});
|
||||
|
||||
it('returns true for auth (or pretend auth)', () => {
|
||||
const link = 'http://whatever.com&login=someuser@77777777';
|
||||
assert.strictEqual(isLinkSneaky(link), true);
|
||||
});
|
||||
|
||||
it('returns false for regular @ in url', () => {
|
||||
const link =
|
||||
'https://lbry.tv/@ScammerRevolts:b0/DELETING-EVERY-FILE-OFF-A-SCAMMERS-LAPTOP-Destroyed:1';
|
||||
assert.strictEqual(isLinkSneaky(link), false);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue