Skip to content
Permalink
Browse files
tools: update lint-md-dependencies to rollup@2.77.0
PR-URL: #43871
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
nodejs-github-bot authored and danielleadams committed Jul 26, 2022
1 parent e12bf40 commit c92135aa0fe6e98659732c52eb9972728e23f32f
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 32 deletions.
@@ -10748,6 +10748,7 @@ const findAndReplace =
const replace = pairs[pairIndex][1];
let start = 0;
const index = parent.children.indexOf(node);
let change = false;
let nodes = [];
let position;
find.lastIndex = 0;
@@ -10763,9 +10764,7 @@ const findAndReplace =
if (typeof value === 'string') {
value = value.length > 0 ? {type: 'text', value} : undefined;
}
if (value === false) {
position = undefined;
} else {
if (value !== false) {
if (start !== position) {
nodes.push({
type: 'text',
@@ -10778,19 +10777,20 @@ const findAndReplace =
nodes.push(value);
}
start = position + match[0].length;
change = true;
}
if (!find.global) {
break
}
match = find.exec(node.value);
}
if (position === undefined) {
nodes = [node];
} else {
if (change) {
if (start < node.value.length) {
nodes.push({type: 'text', value: node.value.slice(start)});
}
parent.children.splice(index, 1, ...nodes);
} else {
nodes = [node];
}
return index + nodes.length
}

Some generated files are not rendered by default. Learn more.

@@ -16,7 +16,7 @@
"devDependencies": {
"@rollup/plugin-commonjs": "^22.0.1",
"@rollup/plugin-node-resolve": "^13.3.0",
"rollup": "^2.76.0",
"rollup": "^2.77.0",
"rollup-plugin-cleanup": "^3.2.1"
}
}

0 comments on commit c92135a

Please sign in to comment.