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

Commit 8b03487

Browse files
Upgrade dev deps, fix startsWith bug
1 parent 5866571 commit 8b03487

File tree

3 files changed

+269
-328
lines changed

3 files changed

+269
-328
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)