Remove outdated comments
This commit is contained in:
parent
e2fb5de595
commit
5f5359ae65
1 changed files with 3 additions and 3 deletions
|
@ -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)]) {
|
||||||
|
|
Loading…
Reference in a new issue