chore(cloudcmd) lint

This commit is contained in:
coderaiser 2020-12-03 18:27:59 +02:00
parent 1e853b040d
commit 4c7f8cc6b6
10 changed files with 16 additions and 37 deletions

View file

@ -87,7 +87,7 @@ function rest(config, request, response) {
*/
function sendData(params, config, callback) {
const p = params;
const isMD = RegExp('^/markdown').test(p.name);
const isMD = /^\/markdown/.test(p.name);
const rootDir = config('root');
if (isMD)