From e20810b0cb34875ea354326a18882fd77561ba04 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 11 May 2021 20:44:39 +0530 Subject: [PATCH] Add test for unicode after fragment without path Signed-off-by: RMidhunSuresh --- src/domain/session/room/timeline/linkify.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/domain/session/room/timeline/linkify.js b/src/domain/session/room/timeline/linkify.js index 6e877954..4bcf98e8 100644 --- a/src/domain/session/room/timeline/linkify.js +++ b/src/domain/session/room/timeline/linkify.js @@ -103,6 +103,10 @@ export function tests() { "Link with unicode only after / must linkify": assert => { testLink(assert, "https://foo.bar.com/\uD83D\uDE03"); + }, + + "Link with unicode after fragment without path must linkify": assert => { + testLink(assert, "https://foo.bar.com#\uD83D\uDE03"); } }; }