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

Commit 49f8a76

Browse files
Merge remote-tracking branch 'origin/upgrade-dev-deps' into upgrade-deps
2 parents a7dd205 + 8b03487 commit 49f8a76

File tree

3 files changed

+265
-324
lines changed

3 files changed

+265
-324
lines changed

lib/catch-links.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = function (root, cb) {
1616

1717
let href = anchor.getAttribute('href')
1818

19-
if (href.startsWith('#')) {
19+
if (typeof href === 'string' && href.startsWith('#')) {
2020
try {
2121
href = decodeURIComponent(href)
2222
} catch (e) {

0 commit comments

Comments
 (0)