Skip to content

Commit

Permalink
fix: add missing radix to parseInt
Browse files Browse the repository at this point in the history
  • Loading branch information
sheck committed Oct 2, 2024
1 parent 2897587 commit 3e8aaee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/git_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function generateChangeRanges(path: string, compareSha: string) {
.map((match) => {
const rangeStart = parseInt(match!.groups!.rangeStart, 10)
const rangeLength = match!.groups!.rangeLength
? parseInt(match!.groups!.rangeLength) - 1
? parseInt(match!.groups!.rangeLength, 10) - 1
: 0

return new ChangeRange(rangeStart, rangeStart + rangeLength)
Expand Down

0 comments on commit 3e8aaee

Please sign in to comment.