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:
calixteman 2026-06-06 13:17:11 +02:00 committed by GitHub
commit 2348365874
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);