This commit is contained in:
Dragon Fire
2020-06-21 20:59:57 -04:00
parent f6e7f0698a
commit 106c21b639
+2 -2
View File
@@ -61,8 +61,8 @@ module.exports = class ScreenshotCommand extends Command {
if (!force && this.pornList) return this.pornList;
const { text } = await request.get('https://raw.githubusercontent.com/blocklistproject/Lists/master/porn.txt');
this.pornList = text.split('\n')
.filter(url => url && !url.startsWith('#'))
.map(url => url.replace(/^(0.0.0.0 )/, '')); // eslint-disable-line no-control-regex
.filter(site => site && !site.startsWith('#'))
.map(site => site.replace(/^(0.0.0.0 )/, '')); // eslint-disable-line no-control-regex
return this.postList;
}
};