mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(cloudcmd) lint
This commit is contained in:
parent
1e853b040d
commit
4c7f8cc6b6
10 changed files with 16 additions and 37 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue