test02/node_modules/@vuepress/plugin-seo/lib/node/utils/getUrl.js
罗佳鸿 6aa1ebe342
Some checks are pending
部署文档 / deploy-gh-pages (push) Waiting to run
first commit
2024-08-13 10:11:19 +08:00

3 lines
247 B
JavaScript

import { isLinkHttp, removeEndingSlash, removeLeadingSlash, } from 'vuepress/shared';
export const getUrl = (hostname, base, url) => `${removeEndingSlash(isLinkHttp(hostname) ? hostname : `https://${hostname}`)}${base}${removeLeadingSlash(url)}`;