mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Replace helpers.overlapsAnyRange with .withinAnyRange, update code/tests for resulting behavior.
This commit is contained in:
parent
cb943a8718
commit
6718944b0f
10 changed files with 70 additions and 53 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { addError, forEachLine, overlapsAnyRange } = require("../helpers");
|
||||
const { addError, forEachLine, withinAnyRange } = require("../helpers");
|
||||
const { codeBlockAndSpanRanges, lineMetadata } = require("./cache");
|
||||
|
||||
const reversedLinkRe =
|
||||
|
|
@ -24,7 +24,7 @@ module.exports = {
|
|||
if (
|
||||
!linkText.endsWith("\\") &&
|
||||
!linkDestination.endsWith("\\") &&
|
||||
!overlapsAnyRange(exclusions, lineIndex, index, length)
|
||||
!withinAnyRange(exclusions, lineIndex, index, length)
|
||||
) {
|
||||
addError(
|
||||
onError,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue