UNPKG

@vuepress-reco/style-default

Version:
17 lines (16 loc) 526 B
"use strict"; 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;