Skip to content
Snippets Groups Projects
Commit 5f5359ae authored by Danila Fedorin's avatar Danila Fedorin
Browse files

Remove outdated comments

parent e2fb5de5
Branches
Tags
No related merge requests found
...@@ -74,9 +74,9 @@ export const LinkKind = createEnum( ...@@ -74,9 +74,9 @@ export const LinkKind = createEnum(
export function tryFixUrl(fragment) { export function tryFixUrl(fragment) {
const attempts = []; const attempts = [];
const afterHash = fragment.substring(fragment.startsWith("#/") ? 2 : 1); const afterHash = fragment.substring(fragment.startsWith("#/") ? 2 : 1);
attempts.push('#/@' + afterHash); // #room => #/@room attempts.push('#/@' + afterHash);
attempts.push('#/#' + afterHash); // #@room => #/@room attempts.push('#/#' + afterHash);
attempts.push('#/!' + afterHash); // #@room => #/@room attempts.push('#/!' + afterHash);
const validAttempts = []; const validAttempts = [];
for (const attempt of [...new Set(attempts)]) { for (const attempt of [...new Set(attempts)]) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment