From af84b0148235aa67db252e02cff32163537b184e Mon Sep 17 00:00:00 2001 From: Sean Hatfield <seanhatfield5@gmail.com> Date: Fri, 12 Apr 2024 14:56:59 -0700 Subject: [PATCH] [FIX] GitHub repo with periods in link fix (#1084) fix periods in github repo links bug --- collector/utils/extensions/GithubRepo/RepoLoader/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- GitLab