Skip to content

Commit

Permalink
fix!: address off by one error processing branches (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Oct 4, 2020
1 parent d86a6da commit abe51ea
Show file tree
Hide file tree
Showing 4 changed files with 279 additions and 165 deletions.
2 changes: 1 addition & 1 deletion lib/v8-to-istanbul.js
Expand Up @@ -107,7 +107,7 @@ module.exports = class V8ToIstanbul {
return true
}

return startCol <= line.endCol && endCol >= line.startCol
return startCol < line.endCol && endCol >= line.startCol
})
const startLineInstance = lines[0]
const endLineInstance = lines[lines.length - 1]
Expand Down

0 comments on commit abe51ea

Please sign in to comment.