Skip to content

Commit

Permalink
feat(#149): parse empty files
Browse files Browse the repository at this point in the history
  • Loading branch information
jannis-baum committed Aug 1, 2024
1 parent 7cc82ab commit ed1aa2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function textRenderer(
}

export const shouldRender = (mime: string): boolean =>
mime.startsWith('text/') || mime === 'application/json';
mime.startsWith('text/') || mime === 'application/json' || mime === 'inode/x-empty';

export function renderTextFile(content: string, path: string): string {
const fileEnding = path?.split('.')?.at(-1);
Expand Down

0 comments on commit ed1aa2d

Please sign in to comment.