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