From 48788a74ba83b2e64e852a385a1f599330ebcff5 Mon Sep 17 00:00:00 2001 From: YoshinoriN Date: Wed, 1 Apr 2020 21:19:32 +0900 Subject: [PATCH] docs: add isExternalLink JSDoc (#190) --- lib/is_external_link.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/is_external_link.js b/lib/is_external_link.js index f07012f3..86eeec70 100644 --- a/lib/is_external_link.js +++ b/lib/is_external_link.js @@ -8,6 +8,8 @@ const cache = new Cache(); /** * 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 */