mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 14:30:12 +01:00
Replace string.trimEnd with string.trimRight for Node 8.
This commit is contained in:
parent
a062e7c6bd
commit
84e972c72c
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ module.exports = {
|
||||||
const firstIndex = list.open.map[0];
|
const firstIndex = list.open.map[0];
|
||||||
if (!isBlankLine(lines[firstIndex - 1])) {
|
if (!isBlankLine(lines[firstIndex - 1])) {
|
||||||
const line = lines[firstIndex];
|
const line = lines[firstIndex];
|
||||||
const quotePrefix = line.match(quotePrefixRe)[0].trimEnd();
|
const quotePrefix = line.match(quotePrefixRe)[0].trimRight();
|
||||||
addErrorContext(
|
addErrorContext(
|
||||||
onError,
|
onError,
|
||||||
firstIndex + 1,
|
firstIndex + 1,
|
||||||
|
|
@ -32,7 +32,7 @@ module.exports = {
|
||||||
const lastIndex = list.lastLineIndex - 1;
|
const lastIndex = list.lastLineIndex - 1;
|
||||||
if (!isBlankLine(lines[lastIndex + 1])) {
|
if (!isBlankLine(lines[lastIndex + 1])) {
|
||||||
const line = lines[lastIndex];
|
const line = lines[lastIndex];
|
||||||
const quotePrefix = line.match(quotePrefixRe)[0].trimEnd();
|
const quotePrefix = line.match(quotePrefixRe)[0].trimRight();
|
||||||
addErrorContext(
|
addErrorContext(
|
||||||
onError,
|
onError,
|
||||||
lastIndex + 1,
|
lastIndex + 1,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue