Skip to content

Commit

Permalink
Fix formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
maxschmeling committed Apr 23, 2024
1 parent 771caf7 commit f8717c5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/lib/cli/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,13 @@ function csv( data: Record< string, unknown >[] ): string {
const parser = new Parser( {
formatters: {
header: ( value: string ) => {
return value.split( /(?=[A-Z])/ ).join( ' ' ).toLowerCase()
}
return value
.split( /(?=[A-Z])/ )
.join( ' ' )
.toLowerCase();
},
},
fields,
fields,
} );

return parser.parse( data );
Expand Down

0 comments on commit f8717c5

Please sign in to comment.