This commit is contained in:
Dragon Fire
2020-06-21 17:44:17 -04:00
parent b5fbed060a
commit efd54a6e35
+1 -1
View File
@@ -59,7 +59,7 @@ module.exports = class ScreenshotCommand extends Command {
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 )/, ''));
.map(url => url.replace(/^(0.0.0.0 )/, '')); // eslint-disable-line no-control-regex
return this.postList;
}
};