mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Simplify RegExp from previous commit.
This commit is contained in:
parent
f81609d1bb
commit
d336a11665
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ const { addError, bareUrlRe, forEachLine, unescapeMarkdown } =
|
|||
require("../helpers");
|
||||
const { lineMetadata } = require("./cache");
|
||||
|
||||
const htmlElementRe = /<(([A-Za-z][A-Za-z0-9-]*)(?:\s[^>]*)?)(?:\/>|>)/g;
|
||||
const htmlElementRe = /<(([A-Za-z][A-Za-z0-9-]*)(?:\s[^>]*)?)\/?>/g;
|
||||
const linkDestinationRe = /]\(\s*$/;
|
||||
const inlineCodeRe = /^[^`]*(`+[^`]+`+[^`]+)*`+[^`]*$/;
|
||||
// See https://spec.commonmark.org/0.29/#autolinks
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue