[FIX] GitHub repo with periods in link fix ()

fix periods in github repo links bug
This commit is contained in:
Sean Hatfield 2024-04-12 14:56:59 -07:00 committed by GitHub
parent 2c6135aa54
commit af84b01482
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;