mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 18:23:35 +00:00
feature(util) rm isContainStrAtBegin
This commit is contained in:
parent
329df3e5c6
commit
57df106f0a
3 changed files with 3 additions and 33 deletions
|
|
@ -99,8 +99,8 @@
|
|||
*/
|
||||
function sendData(params, callback) {
|
||||
var p = params,
|
||||
isFS = Util.isContainStrAtBegin(p.name, CloudFunc.FS),
|
||||
isMD = Util.isContainStrAtBegin(p.name, '/markdown');
|
||||
isFS = /^\/fs/.test(p.name),
|
||||
isMD = /^\/markdown/.test(p.name);
|
||||
|
||||
if (isFS)
|
||||
onFS(params, callback);
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@
|
|||
|
||||
name = ponse.getPathName(request);
|
||||
isAuth = Util.strCmp(name, ['/auth', '/auth/github']);
|
||||
isFS = Util.strCmp(name, '/') || Util.isContainStrAtBegin(name, FS);
|
||||
isFS = RegExp('^/$|' + FS).test(name);
|
||||
|
||||
p = {
|
||||
request : request,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue