3 lines
247 B
JavaScript
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)}`;
|