diff --git a/lib/read.js b/lib/read.js index 882b11c..62e68a6 100644 --- a/lib/read.js +++ b/lib/read.js @@ -70,7 +70,7 @@ module.exports = async function read ({ } done() // truncate the \n at the end. - const res = line.replace(/\r?\n$/, '') || def || '' + const res = line.replace(/\r?\n?$/, '') || def || '' return resolve(res) })