mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-04-17 18:18:11 +00:00
[FIX] GitHub repo with periods in link fix (#1084)
fix periods in github repo links bug
This commit is contained in:
parent
2c6135aa54
commit
af84b01482
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue