mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
core: fix extracting internal links
This commit is contained in:
committed by
Abdullah Atta
parent
04d66576cb
commit
e28a4b4e23
@@ -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