mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 22:40:13 +01:00
Fix an instance of "Polynomial regular expression used on uncontrolled data".
This commit is contained in:
parent
4b7caf2a5b
commit
96699459d1
4 changed files with 12 additions and 5 deletions
|
|
@ -2,11 +2,9 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { addErrorContext, filterTokens, rangeFromRegExp } =
|
||||
const { addErrorContext, emptyLinkRe, filterTokens, rangeFromRegExp } =
|
||||
require("../helpers");
|
||||
|
||||
const emptyLinkRe = /\[[^\]]*](?:\((?:#?|(?:<>))\))/;
|
||||
|
||||
module.exports = {
|
||||
"names": [ "MD042", "no-empty-links" ],
|
||||
"description": "No empty links",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue