Remove outdated comments

This commit is contained in:
Danila Fedorin 2021-08-30 14:48:22 -07:00
parent e2fb5de595
commit 5f5359ae65
1 changed files with 3 additions and 3 deletions

View File

@ -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)]) {