mirror of
https://github.com/theoludwig/markdownlint-rule-relative-links.git
synced 2026-02-20 03:09:05 +01:00
fix: empty id fragment should be invalid
This commit is contained in:
@@ -119,7 +119,7 @@ const getMarkdownIdOrAnchorNameFragments = (content) => {
|
||||
}
|
||||
|
||||
const anchorIdOrName = anchorMatch[1]
|
||||
if (anchorMatch[1] === undefined) {
|
||||
if (anchorIdOrName === undefined) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user