Improve readability

This commit is contained in:
syuilo 2016-09-15 11:43:10 +09:00
parent d5b29f9054
commit d590140bb3

View File

@ -5,9 +5,8 @@ const client = require('cheerio-httpcli');
client.referer = false;
client.timeout = 10000;
exports.test = (url: URL.Url) => {
return /\.wikipedia\.org$/.test(url.hostname);
};
exports.test = (url: URL.Url) =>
/\.wikipedia\.org$/.test(url.hostname);
exports.summary = async (url: URL.Url) => {
const res = await client.fetch(url.href);