Check fix

This commit is contained in:
Zef Hemel
2023-12-29 20:06:11 +01:00
parent 16b8d4ef12
commit c1a6253b34
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ async function actionClickOrActionEnter(
switch (mdTree.type) {
case "WikiLink": {
let pageLink = mdTree.children![1]!.children![0].text!;
let pos;
let pos: string | number = 0;
if (pageLink.includes("@") || pageLink.includes("$")) {
[pageLink, pos] = pageLink.split(/[@$]/);
if (pos.match(/^\d+$/)) {