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

Commit a144f88

Browse files
Merge pull request #1188 from ssbc/upgrade-deps
Upgrade deps
2 parents 604c54e + 5701c72 commit a144f88

File tree

3 files changed

+990
-3341
lines changed

3 files changed

+990
-3341
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)