mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +02:00
Fix lint
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user