mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(rest) regExp
This commit is contained in:
parent
57df106f0a
commit
7ea6d4f618
1 changed files with 2 additions and 2 deletions
|
|
@ -99,8 +99,8 @@
|
|||
*/
|
||||
function sendData(params, callback) {
|
||||
var p = params,
|
||||
isFS = /^\/fs/.test(p.name),
|
||||
isMD = /^\/markdown/.test(p.name);
|
||||
isFS = RegExp('^/fs').test(p.name),
|
||||
isMD = RegExp('^/markdown').test(p.name);
|
||||
|
||||
if (isFS)
|
||||
onFS(params, callback);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue