mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-12 21:21:04 +02:00
Merge pull request #21392 from Snuffleupagus/Autolinker-invalid-email-domain-test
Add one more unit-test case for invalid email domains in the `Autolinker` class
This commit is contained in:
commit
2348365874
@ -149,6 +149,7 @@ describe("autolinker", function () {
|
||||
"abc.example.com", // URL without scheme.
|
||||
"JD?M$0QP)lKn06l1apKDC@\\qJ4B!!(5m+j.7F790m", // Not a valid email.
|
||||
"262@0.302304", // Invalid domain.
|
||||
"foo@123.456", // Invalid domain.
|
||||
].join("\n")
|
||||
);
|
||||
expect(matches.length).toEqual(0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user