diff --git a/lib/md032.js b/lib/md032.js index 607f167a..264802e2 100644 --- a/lib/md032.js +++ b/lib/md032.js @@ -17,7 +17,7 @@ module.exports = { const firstIndex = list.open.map[0]; if (!isBlankLine(lines[firstIndex - 1])) { const line = lines[firstIndex]; - const quotePrefix = line.match(quotePrefixRe)[0].trimEnd(); + const quotePrefix = line.match(quotePrefixRe)[0].trimRight(); addErrorContext( onError, firstIndex + 1, @@ -32,7 +32,7 @@ module.exports = { const lastIndex = list.lastLineIndex - 1; if (!isBlankLine(lines[lastIndex + 1])) { const line = lines[lastIndex]; - const quotePrefix = line.match(quotePrefixRe)[0].trimEnd(); + const quotePrefix = line.match(quotePrefixRe)[0].trimRight(); addErrorContext( onError, lastIndex + 1,