@vuepress-reco/style-default
Version:
It is default type of vuepress-theme-reco.
17 lines (16 loc) • 526 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveRepoType = void 0;
const shared_1 = require("@vuepress/shared");
const resolveRepoType = (repo) => {
if (!shared_1.isLinkHttp(repo) || /github\.com/.test(repo))
return 'GitHub';
if (/bitbucket\.org/.test(repo))
return 'Bitbucket';
if (/gitlab\.com/.test(repo))
return 'GitLab';
if (/gitee\.com/.test(repo))
return 'Gitee';
return null;
};
exports.resolveRepoType = resolveRepoType;