diff --git a/test/test_matrixeventprocessor.ts b/test/test_matrixeventprocessor.ts index 56adf8910ba316399804687bf218bdc34145700b..01572ecc1c22b1bd15418551dd3b51f52c8dac04 100644 --- a/test/test_matrixeventprocessor.ts +++ b/test/test_matrixeventprocessor.ts @@ -262,6 +262,14 @@ describe("MatrixEventProcessor", () => { processor.FindMentionsInPlainBody("Hello TestUsername#54321", members), "Hello <@!12345>", ); + Chai.assert.equal( + 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(); @@ -310,6 +318,14 @@ describe("MatrixEventProcessor", () => { processor.FindMentionsInPlainBody("Fixing this issue provided by @Test", members), "Fixing this issue provided by <@!54321>", ); + Chai.assert.equal( + 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();