mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 10:14:13 +00:00
chore: lint
This commit is contained in:
parent
43edba8cb8
commit
cc889bda4f
48 changed files with 64 additions and 62 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue