Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samhstn committed Jan 2, 2024
1 parent 8ac84dc commit a7b5fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Submatch = {
}

export const formatLine = (line: Line, index: number) => {
if (!line.match) {
if (!line.match || !line.submatches) {
return ` ${index + 1}\t${line.file}`
}
let match = ''
Expand Down

0 comments on commit a7b5fe4

Please sign in to comment.