chore: lint

This commit is contained in:
coderiaser 2025-12-31 14:13:10 +02:00
parent 43edba8cb8
commit cc889bda4f
48 changed files with 64 additions and 62 deletions

View file

@ -5,7 +5,7 @@ const testRegExp = currify((name, reg) => reg.test(name));
const getRegExp = (ext) => RegExp(`\\.${ext}$`, 'i');
const isPDF = (a) => /\.pdf$/i.test(a);
const isHTML = (a) => /\.html$/.test(a);
const isHTML = (a) => a.endsWith('.html');
const isMarkdown = (a) => /.\.md$/.test(a);
module.exports = (name) => {

View file

@ -7,7 +7,7 @@ require('../../../css/view.css');
const rendy = require('rendy');
const currify = require('currify');
const wraptile = require('wraptile');
const tryToCatch = require('try-to-catch');
const {tryToCatch} = require('try-to-catch');
const load = require('load.js');
const modal = require('@cloudcmd/modal');

View file

@ -7,7 +7,7 @@ const testRegExp = currify((name, reg) => reg.test(name));
const getRegExp = (ext) => RegExp(`\\.${ext}$`, 'i');
const isPDF = (a) => /\.pdf$/i.test(a);
const isHTML = (a) => /\.html$/.test(a);
const isHTML = (a) => a.endsWith('.html');
const isMarkdown = (a) => /.\.md$/.test(a);
module.exports.getType = async (path) => {