Skip to content

Commit

Permalink
Merge pull request #150 from jannis-baum/issue/149-parse-empty-files
Browse files Browse the repository at this point in the history
Parse empty files
  • Loading branch information
jannis-baum authored Aug 1, 2024
2 parents 7cc82ab + ed1aa2d commit 55facfb
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 55facfb

Please sign in to comment.