mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[PR #262] [CLOSED] Fix NPE with wrapped links #830
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#830
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/DavidAnson/markdownlint/pull/262
Author: @miffels
Created: 3/2/2020
Status: ❌ Closed
Base:
master← Head:patch-1📝 Commits (1)
c09a670Fix NPE with wrapped links📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
lib/md039.js(+1 -1)📄 Description
The regex change addresses an issue when due to automated line wrapping or other f-ups links get wrapped like this:
Before the change, the failed match would result in an NPE:
Alternatively, one could add error handling to ensure the regex actually matches:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.