From 2c6135aa54ad0dba04d0ba9642b5e0d8a57087ec Mon Sep 17 00:00:00 2001 From: Timothy Carambat <rambat1010@gmail.com> Date: Fri, 12 Apr 2024 14:54:33 -0700 Subject: [PATCH] patch file types as plaintext (#1095) resolves #1089 --- collector/utils/files/mime.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/collector/utils/files/mime.js b/collector/utils/files/mime.js index fa0a59e94..635a6aa32 100644 --- a/collector/utils/files/mime.js +++ b/collector/utils/files/mime.js @@ -21,7 +21,21 @@ class MimeDetector { // which has had this extension far before TS was invented. So need to force re-map this MIME map. this.lib.define( { - "text/plain": ["ts", "py", "opts", "lock", "jsonl", "qml", "sh"], + "text/plain": [ + "ts", + "py", + "opts", + "lock", + "jsonl", + "qml", + "sh", + "c", + "cs", + "h", + "js", + "lua", + "pas", + ], }, true );