8000 Fixed GitLab star count · squidfunk/mkdocs-material@5b8721f · GitHub
[go: up one dir, main page]

Skip to content

Commit 5b8721f

Browse files
committed
Fixed GitLab star count
1 parent 387970c commit 5b8721f

File tree

1 file changed

+2
-2
lines changed
  • src/assets/javascripts/patches/source

1 file changed

+2
-2
lines changed

src/assets/javascripts/patches/source/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ function fetchSourceFacts(
7474

7575
/* GitLab repository */
7676
case "gitlab":
77-
const [, base, project] = url.match(/^.+?([^\/]*gitlab[^\/]+)\/(.+)/i)
78-
return fetchSourceFactsFromGitLab(base, project)
77+
const [, base, slug] = url.match(/^.+?([^\/]*gitlab[^\/]+)\/(.+?)\/?$/i)
78+
return fetchSourceFactsFromGitLab(base, slug)
7979

8080
/* Everything else */
8181
default:

0 commit comments

Comments
 (0)
0