Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit a895770

Browse files
committed
link preview: check that channel is valid
fixes #774
1 parent 6086da9 commit a895770

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/app/link-preview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ exports.create = function (api) {
5454
h('code', href)
5555
])
5656
])
57-
} else if (href.startsWith('#') && href.length > 1) {
57+
} else if (href.startsWith('#') && ref.normalizeChannel(href)) {
5858
preview = api.channel.html.preview(href.slice(1))
5959
}
6060
}

0 commit comments

Comments
 (0)