mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-23 01:10:13 +01:00
Refactor various code to do shallow/constrained search instead of deep search for better performance, make cache key for filterByTypesCached unique.
This commit is contained in:
parent
2fa7730a6b
commit
d22c1f19ef
12 changed files with 171 additions and 220 deletions
|
|
@ -40,8 +40,8 @@ module.exports = {
|
|||
const spaceRight = rightSpaceRe.test(endData.text);
|
||||
if (spaceLeft || spaceRight) {
|
||||
let lineNumber = startSequence.startLine;
|
||||
let range = null;
|
||||
let fixInfo = null;
|
||||
let range = undefined;
|
||||
let fixInfo = undefined;
|
||||
if (startSequence.startLine === endSequence.endLine) {
|
||||
range = [
|
||||
startSequence.startColumn,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue