Skip to content

Commit 4cdbd36

Browse files
committed
trim whitespace on include
1 parent 58fb05f commit 4cdbd36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ module.exports = function coverage(fp) {
1616
}
1717

1818
var str = fs.readFileSync(fp, 'utf8');
19-
return stripAnsi(str).replace(/^=.*/gm, '');
19+
str = stripAnsi(str).replace(/^=.*/gm, '');
20+
return str.trim();
2021
};

0 commit comments

Comments
 (0)