hexo-util
Version:
Utilities for Hexo.
10 lines (9 loc) • 477 B
TypeScript
/**
* Check whether the link is external
* @param {String} input The url to check
* @param {String} input The hostname / url of website
* @param {Array} input Exclude hostnames. Specific subdomain is required when applicable, including www.
* @returns {Boolean} True if the link doesn't have protocol or link has same host with config.url
*/
declare function isExternalLink(input: string, sitehost: string, exclude?: string | string[]): boolean;
export = isExternalLink;