From 84e972c72c4e13112766169b12a6cb3988beccf4 Mon Sep 17 00:00:00 2001 From: David Anson Date: Wed, 28 Aug 2019 21:52:13 -0700 Subject: [PATCH] Replace string.trimEnd with string.trimRight for Node 8. --- lib/md032.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,