Add one more unit-test case for invalid email domains in the Autolinker class

This improves coverage for a branch of the `Autolinker` class that wasn't previously tested.
This commit is contained in:
Jonas Jenwald 2026-06-06 11:53:37 +02:00
parent 9c437e6ab4
commit 08b704d4b1

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