mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-05-29 01:17:17 +09:00
Improve readability
This commit is contained in:
parent
d5b29f9054
commit
d590140bb3
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user