diff --git a/collector/utils/extensions/GithubRepo/RepoLoader/index.js b/collector/utils/extensions/GithubRepo/RepoLoader/index.js index 7f1c1c057..dbe26fa29 100644 --- a/collector/utils/extensions/GithubRepo/RepoLoader/index.js +++ b/collector/utils/extensions/GithubRepo/RepoLoader/index.js @@ -13,7 +13,9 @@ class RepoLoader { #validGithubUrl() { const UrlPattern = require("url-pattern"); - const pattern = new UrlPattern("https\\://github.com/(:author)/(:project)"); + const pattern = new UrlPattern( + "https\\://github.com/(:author)/(:project(*))" + ); const match = pattern.match(this.repo); if (!match) return false; 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 ); diff --git a/embed/README.md b/embed/README.md index 698fca61e..05aac501e 100644 --- a/embed/README.md +++ b/embed/README.md @@ -14,6 +14,7 @@ This folder of AnythingLLM contains the source code for how the embedded version The AnythingLLM Embedded chat widget allows you to expose a workspace and its embedded knowledge base as a chat bubble via a ` ``` ### `