mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed GitLab star count
This commit is contained in:
parent
387970c611
commit
5b8721ff92
@ -74,8 +74,8 @@ function fetchSourceFacts(
|
||||
|
||||
/* GitLab repository */
|
||||
case "gitlab":
|
||||
const [, base, project] = url.match(/^.+?([^\/]*gitlab[^\/]+)\/(.+)/i)
|
||||
return fetchSourceFactsFromGitLab(base, project)
|
||||
const [, base, slug] = url.match(/^.+?([^\/]*gitlab[^\/]+)\/(.+?)\/?$/i)
|
||||
return fetchSourceFactsFromGitLab(base, slug)
|
||||
|
||||
/* Everything else */
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user