1
0
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:
squidfunk 2020-04-17 14:33:04 +02:00
parent 387970c611
commit 5b8721ff92

View File

@ -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: