Skip to content

Commit

Permalink
Fix running on Windows (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
orgads authored Dec 26, 2024
1 parent 7af44a7 commit f25618a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module.exports = async function* coberturaReporter(source) {
const classes = files.map(f => {
const relativePath = path.relative(workingDirectory, f.path);
const dirname = path.dirname(relativePath);
const withReplacesSep = dirname.replace(new RegExp(path.sep, 'g'), '.');
const withReplacesSep = dirname.replaceAll(path.sep, '.');

const branchesByLine = f.branches.reduce((acc, b) => {
if (!acc[b.line]) {
Expand Down

0 comments on commit f25618a

Please sign in to comment.