diff --git a/test/test_matrixeventprocessor.ts b/test/test_matrixeventprocessor.ts index fb60f4c07118600eddeffb35f96f793151a8e680..01572ecc1c22b1bd15418551dd3b51f52c8dac04 100644 --- a/test/test_matrixeventprocessor.ts +++ b/test/test_matrixeventprocessor.ts @@ -266,6 +266,10 @@ describe("MatrixEventProcessor", () => { processor.FindMentionsInPlainBody("I really love going to https://TestUsername.com", members), "I really love going to https://TestUsername.com", ); + Chai.assert.equal( + processor.FindMentionsInPlainBody("I really love going to www.TestUsername.com", members), + "I really love going to www.TestUsername.com", + ); }); it("processes mentioned nickname correctly", async () => { const processor = createMatrixEventProcessor(); @@ -318,6 +322,10 @@ describe("MatrixEventProcessor", () => { processor.FindMentionsInPlainBody("I really love going to https://Test.com", members), "I really love going to https://Test.com", ); + Chai.assert.equal( + processor.FindMentionsInPlainBody("I really love going to www.Test.com", members), + "I really love going to www.Test.com", + ); }); it("processes non-mentions correctly", async () => { const processor = createMatrixEventProcessor();