7 lines
241 B
JavaScript
7 lines
241 B
JavaScript
import { startsWith } from './helper.js';
|
|
export { isLinkExternal, isLinkHttp, isLinkWithProtocol } from 'vuepress/shared';
|
|
/**
|
|
* Whether a variable is a valid absolute url
|
|
*/
|
|
export const isLinkAbsolute = (test) => startsWith(test, '/');
|