We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92cbec3 commit 6ea6d42Copy full SHA for 6ea6d42
utils.ts
@@ -117,7 +117,7 @@ export const getOrFetchGmodFile = async (path: PathLike) => {
117
const isGithub = provider[1] === "github";
118
const gitlabEndpoint = "https://gitlab.com/api/graphql";
119
const repo = addon;
120
- const owner = url.match(/\.com\/(.+?)\//);
+ const owner = url.match(/\.com\/(.+?)\//)?.[1];
121
const branch = url.split("/").at(-2);
122
123
if (!owner) return;
0 commit comments