Skip to content

Commit

Permalink
[FIX] GitHub repo with periods in link fix (#1084)
Browse files Browse the repository at this point in the history
fix periods in github repo links bug
  • Loading branch information
shatfield4 committed Apr 12, 2024
1 parent 2c6135a commit af84b01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion collector/utils/extensions/GithubRepo/RepoLoader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit af84b01

Please sign in to comment.