mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
core: fix extracting internal links
This commit is contained in:
committed by
Abdullah Atta
parent
9267433d74
commit
4fc5ec00ae
@@ -26,7 +26,7 @@ export function extractInternalLinks(block: ContentBlock) {
|
||||
|
||||
const links: InternalLinkWithOffset[] = [];
|
||||
for (const match of matches || []) {
|
||||
if (!match.index) continue;
|
||||
if (match.index === undefined) continue;
|
||||
const url = match[1].slice(0, match[1].indexOf("|"));
|
||||
const text = match[1].slice(match[1].indexOf("|") + 1);
|
||||
const link = parseInternalLink(url);
|
||||
|
||||
Reference in New Issue
Block a user