From 8ebd691a1cb6023935b58b50e8375e809fb76451 Mon Sep 17 00:00:00 2001
From: Will Hunt <will@half-shot.uk>
Date: Thu, 7 Jun 2018 12:17:43 +0100
Subject: [PATCH] Test to ensure URLs are not manged by mentions

---
 test/test_matrixeventprocessor.ts | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/test/test_matrixeventprocessor.ts b/test/test_matrixeventprocessor.ts
index 56adf89..fb60f4c 100644
--- a/test/test_matrixeventprocessor.ts
+++ b/test/test_matrixeventprocessor.ts
@@ -262,6 +262,10 @@ 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",
+            );
         });
         it("processes mentioned nickname correctly", async () => {
             const processor = createMatrixEventProcessor();
@@ -310,6 +314,10 @@ 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",
+            );
         });
         it("processes non-mentions correctly", async () => {
             const processor = createMatrixEventProcessor();
-- 
GitLab