From 2e657fbbbd14739d46b25db25140d9563acc105e Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Wed, 12 May 2021 15:56:33 +0530 Subject: [PATCH] Add failing test for link ending with < Signed-off-by: RMidhunSuresh --- src/domain/session/room/timeline/linkify/linkify.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/domain/session/room/timeline/linkify/linkify.js b/src/domain/session/room/timeline/linkify/linkify.js index 632918e6..f74dfa44 100644 --- a/src/domain/session/room/timeline/linkify/linkify.js +++ b/src/domain/session/room/timeline/linkify/linkify.js @@ -109,6 +109,12 @@ export function tests() { "Link with unicode after fragment without path must linkify": assert => { testLink(assert, "https://foo.bar.com#\uD83D\uDE03"); + }, + + "Link ends with <": assert => { + const link = "https://matrxi.org"; + const out = [{ type: "link", text: link }, { type: "text", text: "<" }]; + test(assert, link, out); } }; }