From 5f5359ae652dd5afd949ce723e751c10fa1a7195 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Mon, 30 Aug 2021 14:48:22 -0700 Subject: [PATCH] Remove outdated comments --- src/Link.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Link.js b/src/Link.js index 9621e02..cb7653f 100644 --- a/src/Link.js +++ b/src/Link.js @@ -74,9 +74,9 @@ export const LinkKind = createEnum( export function tryFixUrl(fragment) { const attempts = []; const afterHash = fragment.substring(fragment.startsWith("#/") ? 2 : 1); - attempts.push('#/@' + afterHash); // #room => #/@room - attempts.push('#/#' + afterHash); // #@room => #/@room - attempts.push('#/!' + afterHash); // #@room => #/@room + attempts.push('#/@' + afterHash); + attempts.push('#/#' + afterHash); + attempts.push('#/!' + afterHash); const validAttempts = []; for (const attempt of [...new Set(attempts)]) {