From ed1aa2d109320a6a2f7e16a6fa583bed5abe06a8 Mon Sep 17 00:00:00 2001 From: Jannis Baum Date: Thu, 1 Aug 2024 19:56:40 +0200 Subject: [PATCH] feat(#149): parse empty files --- src/parser/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/parser.ts b/src/parser/parser.ts index ee6388c2..5eb6b6e7 100644 --- a/src/parser/parser.ts +++ b/src/parser/parser.ts @@ -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);