Skip to content

Commit

Permalink
fix: skip an empty targets
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmlnc committed May 6, 2021
1 parent 85f96f6 commit 3061b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unsafe/services/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async function findDocumentLinks(document: TextDocument, ast: INode): Promise<Do
const result: DocumentLink[] = [];

for (const link of links) {
if (link.target !== undefined) {
if (link.target !== undefined && link.target !== '') {
result.push({
...link,
target: URI.parse(link.target).fsPath
Expand Down

0 comments on commit 3061b14

Please sign in to comment.