Skip to content

Commit 6ea6d42

Browse files
committed
fix owner match
1 parent 92cbec3 commit 6ea6d42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export const getOrFetchGmodFile = async (path: PathLike) => {
117117
const isGithub = provider[1] === "github";
118118
const gitlabEndpoint = "https://gitlab.com/api/graphql";
119119
const repo = addon;
120-
const owner = url.match(/\.com\/(.+?)\//);
120+
const owner = url.match(/\.com\/(.+?)\//)?.[1];
121121
const branch = url.split("/").at(-2);
122122

123123
if (!owner) return;

0 commit comments

Comments
 (0)